What is wrong with ToLowerInvariant()?
- by JL
I have the following line of code:
var connectionString = configItems.Find(item => item.Name.ToLowerInvariant() == "connectionstring");
VS 2010 Code analysis is telling me the following:
Warning 7 CA1308 : Microsoft.Globalization : In method ... replace the call to 'string.ToLowerInvariant()' with String.ToUpperInvariant().
Does this mean ToUpperInvariant() is more reliable?