Comparer Class
Compares two objects for equivalence, where string comparisons are case-sensitive. This class cannot be inherited.
Definition
Members Table
The following table lists the members exposed by the Comparer object. Click a tab on the left to choose the type of member you want to view.
Methods
| Method | Description |
|---|
| Compare | Performs a case-sensitive comparison of two objects of the same type and returns a value indicating whether one is less than, equal to or greater than the other. |
| Equals | Overloaded. Compares two objects to determine if they are equal. (Inherited from Object) |
| GetHashCode | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object) |
| ToString | Returns a String that represents the current Object. (Inherited from Object) |
Fields
| Field | Description |
|---|
| Default | Gets the Comparer used by default. |
Inheritance Hierarchy
ObjectComparer
Class Information
| Namespace | System.Collections |
|---|
| Flash Library | corlib.scl |
|---|
| Flash Library Version | 2.0.0.2466 |
|---|
| Silverlight Library | System.Windows.Forms.dll |
|---|