This documentation is archived and is not being maintained.

Comparer Members

Comparer overview

Public Constructors

public constructorComparer Constructor

Supported by the .NET Compact Framework.

Initializes a new instance of the Comparer class using the specified System.Globalization.CultureInfo.

Public Fields

public fieldstatic (Shared in Visual Basic)Default

Supported by the .NET Compact Framework.

Represents an instance of Comparer that is associated with the Thread.CurrentCulture of the current thread. This field is read-only.
public fieldstatic (Shared in Visual Basic)DefaultInvariant

Supported by the .NET Compact Framework.

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

Public Methods

public methodCompare

Supported by the .NET Compact Framework.

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.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.

Protected Methods

protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

Comparer Class | System.Collections Namespace

Show: