Just FYI.
If you need to check if a char is within a string, using 'str.IndexOf(c) != -1' is way more efficient than using 'str.Contains(c)' which is a call to 'Enumerable.Contains(string, c)'.
Actually the IndexOf version is way more efficient!
(the results for full framework)
7 months ago