BuildMaster SDK Reference
Version:
Distinct<TSource, TKey>(System.Collections.Generic.IEnumerable<TSource> source, System.Func<TSource, TKey> getPrimaryKey, System.Collections.Generic.IEqualityComparer<TKey> keyComparer) Method
Syntax
public
static
IEnumerable<TSource> Distinct<TSource, TKey>(IEnumerable<TSource> source, Func<TSource, TKey> getPrimaryKey, IEqualityComparer<TKey> keyComparer)
Parameters
- source
- Type: System.Collections.Generic.IEnumerable<TSource>
- getPrimaryKey
- Type: System.Func<TSource, TKey>
- keyComparer
- Type: System.Collections.Generic.IEqualityComparer<TKey>