Class Comparer
Represents the comparer.
Implements
Inherited Members
Namespace: Platform.Comparers
Assembly: Platform.Comparers.dll
Syntax
public class Comparer : IComparer
Constructors
| Improve this Doc View SourceComparer(IComparer)
Initializes a new Comparer instance.
Declaration
public Comparer(IComparer comparer)
Parameters
Type | Name | Description |
---|---|---|
IComparer | comparer | A comparer.
|
Comparer(Func<Object, Object, Int32>)
Initializes a new Comparer instance.
Declaration
public Comparer(Func<object, object, int> compare)
Parameters
Type | Name | Description |
---|---|---|
Func<Object, Object, Int32> | compare | A compare.
|
Methods
| Improve this Doc View SourceCompare(Object, Object)
Compares the x.
Declaration
public int Compare(object x, object y)
Parameters
Type | Name | Description |
---|---|---|
Object | x | The .
|
Object | y | The .
|
Returns
Type | Description |
---|---|
Int32 | The int
|
Operators
| Improve this Doc View SourceImplicit(Comparer to Func<Object, Object, Int32>)
Declaration
public static implicit operator Func<object, object, int>(Comparer comparer)
Parameters
Type | Name | Description |
---|---|---|
Comparer | comparer |
Returns
Type | Description |
---|---|
Func<Object, Object, Int32> |
Implicit(Func<Object, Object, Int32> to Comparer)
Declaration
public static implicit operator Comparer(Func<object, object, int> compare)
Parameters
Type | Name | Description |
---|---|---|
Func<Object, Object, Int32> | compare |
Returns
Type | Description |
---|---|
Comparer |