Exposes a method that compares two objects.
IComparer
[Visual Basic] Public Interface IComparer [C#] public interface IComparer [C++] public __gc __interface IComparer
[JScript] In JScript, you can use the interfaces in the NGWS frameworks, but you cannot define your own.
Class | Description |
---|---|
CaseInsensitiveComparer | [To be supplied.] |
Comparer | Provides the default implementation for the IComparer interface, including the method CompareTo, which compares two objects for equivalence. |
ComponentModelPersister.LocalCache.LocalCacheItemComparer | [To be supplied.] |
KeysConverter | KeysConverter is a class that can be used to convert Key objects from one data type to another. Access this class through the TypeDescriptor. |
This interface is used in conjunction with the Sort and BinarySearch methods in the Array class. The default implementation of this interface is the Comparer class.
Namespace: System.Collections
Assembly: mscorlib.dll