distinct by field LINQ c# use MoreLinq
Distinct by field in LINQ c# use MoreLinq
C# enhances Linq to Objects implementation in distinct method.which we can get values distinctly by a filed name in enumerable by using distinctBy method.this extention method we can get by the nuget packages
you can down load the extensions from this link click Here to get dll
Example :Mylist..DistinctBy(x => x.Name).ToList();
the inner implementation determines by projection and equality comparer of the projected type
in order to use this package we need to get the reference of
MoreLinq.Source.MoreEnumerable.DistinctBy
Hope this will helps you
C# enhances Linq to Objects implementation in distinct method.which we can get values distinctly by a filed name in enumerable by using distinctBy method.this extention method we can get by the nuget packages
you can down load the extensions from this link click Here to get dll
Example :Mylist..DistinctBy(x => x.Name).ToList();
the inner implementation determines by projection and equality comparer of the projected type
in order to use this package we need to get the reference of
MoreLinq.Source.MoreEnumerable.DistinctBy
Hope this will helps you