LambdaKeyComparer(Func<TSource, TKey>, IComparer<TKey>) Constructor

Summary

A System.Collections.Generic.Comparer`1 that delegates comparison to a key-selector function, with an optional inner comparer for the key type.

Syntax

public LambdaKeyComparer(Func<TSource, TKey> keySelector, IComparer<TKey> innerComparer = null)

Parameters

Name Type Description
keySelector Func<TSource, TKey>
innerComparer IComparer<TKey>

Return Value

Type Description
void