 | ProjectionComparerTSourceCreateTKey Method |
Creates an instance of ProjectionComparer using the specified projection.
Namespace:
Koden.Utils
Assembly:
Koden.Utils (in Koden.Utils.dll) Version: 1.1.6453.26060
Syntaxpublic static ProjectionComparer<TSource, TKey> Create<TKey>(
Func<TSource, TKey> projection
)
Public Shared Function Create(Of TKey) (
projection As Func(Of TSource, TKey)
) As ProjectionComparer(Of TSource, TKey)
public:
generic<typename TKey>
static ProjectionComparer<TSource, TKey>^ Create(
Func<TSource, TKey>^ projection
)
static member Create :
projection : Func<'TSource, 'TKey> -> ProjectionComparer<'TSource, 'TKey>
Parameters
- projection
- Type: SystemFuncTSource, TKey
Projection to use when determining the key of an element
Type Parameters
- TKey
- Type parameter for the keys to be compared, after being projected from the elements
Return Value
Type:
ProjectionComparerTSource,
TKeyA comparer which will compare elements by projecting each element to its key, and comparing keys
See Also