¡@

Home 

c# Programming Glossary: tidentity

Linq Distinct() use delegate for equality comparer

http://stackoverflow.com/questions/4607485/linq-distinct-use-delegate-for-equality-comparer

class Compare public static IEnumerable T DistinctBy T TIdentity this IEnumerable T source Func T TIdentity identitySelector.. T DistinctBy T TIdentity this IEnumerable T source Func T TIdentity identitySelector return source.Distinct Compare.By identitySelector.. public static IEqualityComparer TSource By TSource TIdentity Func TSource TIdentity identitySelector return new DelegateComparer..