Click or drag to resize

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
Syntax
public static ProjectionEqualityComparer<TSource, TKey> Create<TSource, TKey>(
	Func<TSource, TKey> projection
)

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, TKey
A comparer which will compare elements by projecting each element to its key, and comparing keys
See Also