.netstandard distinctby iqueryable
public static IQueryable<TSource> DistinctBy<TSource, TKey>(
this IQueryable<TSource> source,
Expression<Func<TSource, TKey>> keySelector)
{
return source.GroupBy(keySelector).Select(grouping => grouping.FirstOrDefault());
}
Also in C#:
- c# function
- asp net mvc 5 return view from another controller
- lat long data type c#
- How to get the world position of the edge of an object?
- functions unity
- c# asp.net hover tooltip
- c# md5 int
- compose graphql query string in c#
- unity create primitive
- unity how to make a ui disappear
- c# try catch error
- unity rigidbody constraints
- mongodb custom IIdGenerator
- .net core copy file in folder to root
- https request c#
- covert char[] to string C#
- count the number of notes in a given amount c#
- how to convert iformfile to byte array c#
- multidimensional meaning
- pop up element from specific index in array
- list c#
- unity onclick object
- unity list length
- unity add sections to a list