mscorlib(4.0.0.0) API with additions
|
Compares two objects for equivalence, where string comparisons are case-sensitive. More...
Public Member Functions | |
Comparer (CultureInfo culture) | |
Initializes a new instance of the T:System.Collections.Comparer class using the specified T:System.Globalization.CultureInfo. More... | |
int | Compare (object a, object b) |
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. More... | |
void | GetObjectData (SerializationInfo info, StreamingContext context) |
Populates a T:System.Runtime.Serialization.SerializationInfo object with the data required for serialization. More... | |
Static Public Attributes | |
static readonly Comparer | Default = new Comparer(CultureInfo.CurrentCulture) |
Represents an instance of T:System.Collections.Comparer that is associated with the P:System.Threading.Thread.CurrentCulture of the current thread. This field is read-only. More... | |
static readonly Comparer | DefaultInvariant = new Comparer(CultureInfo.InvariantCulture) |
Represents an instance of T:System.Collections.Comparer that is associated with P:System.Globalization.CultureInfo.InvariantCulture. This field is read-only. More... | |
Compares two objects for equivalence, where string comparisons are case-sensitive.
Definition at line 11 of file Comparer.cs.
System.Collections.Comparer.Comparer | ( | CultureInfo | culture | ) |
Initializes a new instance of the T:System.Collections.Comparer class using the specified T:System.Globalization.CultureInfo.
culture | The T:System.Globalization.CultureInfo to use for the new T:System.Collections.Comparer. |
T:System.ArgumentNullException | culture is null . |
Definition at line 32 of file Comparer.cs.
int System.Collections.Comparer.Compare | ( | object | a, |
object | b | ||
) |
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.
a | The first object to compare. |
b | The second object to compare. |
T:System.ArgumentException | Neither a nor b implements the T:System.IComparable interface.-or- a and b are of different types and neither one can handle comparisons with the other. |
Implements System.Collections.IComparer.
Definition at line 64 of file Comparer.cs.
void System.Collections.Comparer.GetObjectData | ( | SerializationInfo | info, |
StreamingContext | context | ||
) |
Populates a T:System.Runtime.Serialization.SerializationInfo object with the data required for serialization.
info | The object to populate with data. |
context | The context information about the source or destination of the serialization. |
T:System.ArgumentNullException | info is null . |
Implements System.Runtime.Serialization.ISerializable.
Definition at line 106 of file Comparer.cs.
|
static |
Represents an instance of T:System.Collections.Comparer that is associated with the P:System.Threading.Thread.CurrentCulture of the current thread. This field is read-only.
Definition at line 16 of file Comparer.cs.
|
static |
Represents an instance of T:System.Collections.Comparer that is associated with P:System.Globalization.CultureInfo.InvariantCulture. This field is read-only.
Definition at line 19 of file Comparer.cs.