views:

36

answers:

1

How can I efficiently get a reference to a string in a HashSet<string> if I know the string exists?

i.e.

hashSet.Contains(myString) == true
string stringRef = ???

Thanks!