is (StringComparison.)Ordinal the same as InvariantCulture for testing equality?
- by Tim Lovell-Smith
From what I read so far, it sounds like these StringComparison types are meant to differ in how they do sorting of strings, if so, does that mean that it does'nt matter which StringComparison you use when doing an equality comparison?
string.Equals(a, b, StringComparison....)
Extra credit: does it make a difference to the answer if we compare OrdinalIgnoreCase and InvariantCultureIgnoreCase? What is the answer then?
Please provide supporting argument and/or references.