Click or drag to resize
ComparerT Class
Provides a base class for implementations of the IComparerT generic interface.
Inheritance Hierarchy
SystemObject
  System.Collections.GenericComparerT

Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
[SerializableAttribute]
public abstract class Comparer<T> : IComparer, 
	IComparer<T>

Type Parameters

T
The type of objects to compare.

The ComparerT type exposes the following members.

Methods
  NameDescription
Public methodEquals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyStatic memberDefault
Returns a default sort order comparer for the type specified by the generic argument.
Top
See Also