ProjectionComparerTSource, TKey Class |
Namespace: Koden.Utils
The ProjectionComparerTSource, TKey type exposes the following members.
| Name | Description | |
|---|---|---|
| ProjectionComparerTSource, TKey(FuncTSource, TKey) |
Creates a new instance using the specified projection, which must not be null.
The default comparer for the projected type is used.
| |
| ProjectionComparerTSource, TKey(FuncTSource, TKey, IComparerTKey) |
Creates a new instance using the specified projection, which must not be null.
|
| Name | Description | |
|---|---|---|
| Compare |
Compares x and y by projecting them to keys and then comparing the keys.
Null values are not projected; they obey the
standard comparer contract such that two null values are equal; any null value is
less than any non-null value.
| |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| kReverseTSource |
Reverses the original comparer; if it was already a reverse comparer,
the previous version was reversed (rather than reversing twice).
In other words, for any comparer X, X==X.Reverse().Reverse().
(Defined by ComparerExt.) | |
| kThenByTSource(IComparerTSource) | Overloaded.
Combines a comparer with a second comparer to implement composite sort
behaviour.
(Defined by ComparerExt.) | |
| kThenByTSource, TKey(FuncTSource, TKey) | Overloaded.
Combines a comparer with a projection to implement composite sort behaviour.
(Defined by ComparerExt.) |