Comparer Members
.NET Framework 2.0
Compares two objects for equivalence, where string comparisons are case-sensitive.
The following tables list the members exposed by the Comparer type.
| Name | Description | |
|---|---|---|
| Comparer | Initializes a new instance of the Comparer class using the specified System.Globalization.CultureInfo. |
| Name | Description | |
|---|---|---|
| Default | Represents an instance of Comparer that is associated with the Thread.CurrentCulture of the current thread. This field is read-only. |
| DefaultInvariant | Represents an instance of Comparer that is associated with CultureInfo.InvariantCulture. This field is read-only. |
| Name | 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. Determines whether two Object instances are equal. (inherited from Object) |
| GetHashCode | Serves as a hash function for a particular type. (inherited from Object) |
| GetObjectData | Populates a SerializationInfo object with the data required for serialization. |
| 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) |