22 June, 2009
Roel van Lisdonk
0 Comments
0 categories
If you want to compare two string, ignoring case, use string.Compare and not string.ToLower, for performance reasons.
if (string.Compare(stringA, stringA, true) == 0)
{
// Strings are equal (case ignored)
}
Tags: C#
Related Posts
Convert Exception object with InnerException and StackTrace information to a formatted string
12 August, 2010
Roel van Lisdonk
0 Comments
1 category
If you want to log or show the information from…
C# convert a BitMap to Byte[]
25 May, 2009
Roel van Lisdonk
2 Comments
0 categories
/// <summary> /// Covert a bitmap to a byte array…
Printing table contents for debugging purposes in T-SQL
23 August, 2013
Roel van Lisdonk
0 Comments
1 category
Sometimes you just want to add a print statement in…