TheSwamp
Code Red => .NET => Topic started by: nobody on June 21, 2016, 01:24:36 AM
-
ToUpper() vs StringComparison.InvariantCultureIgnoreCase....was going through some old c# docs and just saw this... I use ToUpper() all the time as a lazy way to compare strings...but the document I was reading mentions using the string comparison instead... I can't think of why it would matter.... thoughts?
-
Was that related to something like 'The Turkey Test ' ?
-
Was that related to something like 'The Turkey Test ' ?
That's interesting... had to look it up...never heard of it before but makes for some good reading. Not sure if that's what the author referred to though. They simply said it's just better.
-
Note, that ToLower() is "better" than ToUpper() for comparring of strings because some chars in some languages haven't upper variant.
-
Note, that ToLower() is "better" than ToUpper() for comparring of strings because some chars in some languages haven't upper variant.
Thanks Andrey! nice tip