Click or drag to resize

DelegateComparerT Class

Inheritance Hierarchy
SystemObject
  TomsToolbox.CoreDelegateComparerT

Namespace:  TomsToolbox.Core
Assembly:  TomsToolbox.Core (in TomsToolbox.Core.dll) Version: 1.0.64.0 (1.0.64.0)
Syntax
public class DelegateComparer<T> : IComparer<T>

Type Parameters

T
The type of objects to compare.This type parameter is contravariant. That is, you can use either the type you specified or any type that is less derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.

The DelegateComparerT type exposes the following members.

Constructors
  NameDescription
Public methodDelegateComparerT
Initializes a new instance of the DelegateComparerT class.
Top
Methods
  NameDescription
Public methodCompare
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
Top
Extension Methods
Contracts
Invariants
_comparer != null
Learn more about contracts
See Also