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