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.74.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
  NameDescription
Public Extension MethodSafeCastT
Performs a cast from object to T, avoiding possible null violations if T is a value type.

[CanBeNull]

(Defined by ObjectExtensions.)
Top
See Also