Click or drag to resize

DelegateComparerT Class

IComparerT implementation using a delegate function to compare the values.
Inheritance Hierarchy
SystemObject
  TomsToolbox.EssentialsDelegateComparerT

Namespace: TomsToolbox.Essentials
Assembly: TomsToolbox.Essentials (in TomsToolbox.Essentials.dll) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntax
public class DelegateComparer<T> : IComparer<T>

Type Parameters

T
The type of objects to compare.

The DelegateComparerT type exposes the following members.

Constructors
 NameDescription
Public methodDelegateComparerT Initializes a new instance of the DelegateComparerT class.
Top
Methods
 NameDescription
Public methodCompareCompares 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.
(Defined by ObjectExtensions)
Top
See Also