7 internal class InvariantComparer :
IComparer 13 internal InvariantComparer()
18 public int Compare(
object a,
object b)
20 string text = a as string;
21 string text2 = b as string;
22 if (text !=
null && text2 !=
null)
24 return m_compareInfo.
Compare(text, text2);
static CultureInfo InvariantCulture
Gets the T:System.Globalization.CultureInfo object that is culture-independent (invariant).
Compares two objects for equivalence, where string comparisons are case-sensitive.
virtual CompareInfo? CompareInfo
Gets the T:System.Globalization.CompareInfo that defines how to compare strings for the culture.
int Compare(object a, object b)
Performs a case-sensitive comparison of two objects of the same type and returns a value indicating w...
virtual int Compare(string string1, string string2)
Compares two strings.
static readonly Comparer Default
Represents an instance of T:System.Collections.Comparer that is associated with the P:System....
Implements a set of methods for culture-sensitive string comparisons.
Exposes a method that compares two objects.
Specifies that the class can be serialized.
Provides information about a specific culture (called a locale for unmanaged code development)....
The default setting for this enumeration, which is currently F:System.GCCollectionMode....