Here’s what I’m doing:
- Take a string
- Check if HashSet contains the string
- If it doesn’t, add the string to the HashSet (if it does, do something else)
This must work with a very large arrays of strings the fastest way possible
Is using HashSet the fastest way to check if string already has occured or is there something better for .net 4.5?
See the HashSet.Add