Click or drag to resize

ProjectionEqualityComparerCreateTSource, TKey Method (TSource, FuncTSource, TKey)

Creates an instance of ProjectionEqualityComparer using the specified projection. The ignored parameter is solely present to aid type inference.

Namespace:  Koden.Utils
Assembly:  Koden.Utils (in Koden.Utils.dll) Version: 1.1.6453.26060
Syntax
public static ProjectionEqualityComparer<TSource, TKey> Create<TSource, TKey>(
	TSource ignored,
	Func<TSource, TKey> projection
)

Parameters

ignored
Type: TSource
Value is ignored - type may be used by type inference
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, TKey
A comparer which will compare elements by projecting each element to its key, and comparing keys
See Also