Comparer Generic Class
Assembly: mscorlib (in mscorlib.dll)
The type of objects to compare.
The object returned by the Default property uses the System.IComparable generic interface (IComparable<T> in C#, IComparable(Of T) in Visual Basic) to compare two objects. If type T does not implement the System.IComparable generic interface, the Default property returns a Comparer that uses the System.IComparable interface.Notes to Implementers: Compare and EqualityComparer.Equals may behave differently in terms of culture-sensitivity and case-sensitivity. For string comparisons, the StringComparer class is recommended over Comparer<String>. Properties of the StringComparer class return predefined instances that perform string comparisons with different combinations of culture-sensitivity and case-sensitivity. The case-sensitivity and culture-sensitivity are consistent among the members of the same StringComparer instance. For more information on culture-specific comparisons, see the System.Globalization namespace and Encoding and Localization.
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.