I\'ve read this question about why it is not possible, but haven\'t found a solution to the problem.
I would like to retrieve an item from a .NET HashSet
Ok, so, you can do it like this
YourObject x = yourHashSet.Where(w => w.Name.Contains("strin")).FirstOrDefault();
This is to get a new Instance of the selected object. In order to update your object, then you should use:
yourHashSet.Where(w => w.Name.Contains("strin")).FirstOrDefault().MyProperty = "something";