class Comparer

in global :: System . Collections

Compares two objects for equivalence, where string comparisons are case-sensitive.


public Comparer( CultureInfo culture )

Initializes a new instance of the class using the specified .

  • culture The to use for the new .

public 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.

  • a The first object to compare.
  • b The second object to compare.
  • Returns A signed integer that indicates the relative values of and , as shown in the following table. Value Meaning Less than zero is less than . Zero equals . Greater than zero is greater than .

public static Comparer Default

Represents an instance of that is associated with the of the current thread. This field is read-only.

public static Comparer DefaultInvariant

Represents an instance of that is associated with . This field is read-only.

public void GetObjectData( SerializationInfo info, StreamingContext context )

Populates a 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.

public Type GetType( )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.