Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

.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());
	}
Comment

PREVIOUS NEXT
Code Example
Csharp :: CullingGroup 
Csharp :: C# write to lines without extra line 
Csharp :: C# program to implement the Quadratic Formula 
Csharp :: c# condition and 
Csharp :: c# check if value in dictionary are unique 
Csharp :: Set orientation of moving object towards it movement direction 
Csharp :: unity variable in editor limit value 
Csharp :: Linq join update without creating new 
Csharp :: go down a line in function documentation 
Csharp :: tab key navigation C# winforms 
Csharp :: c# execute run control panel 
Csharp :: Web forms switch page 
Csharp :: c# inline 
Csharp :: obs mfplat.dll 
Csharp :: Permutation and Combination in C# 
Csharp :: C# .net JwtSecurityTokenHandler jwttoken claims to object 
Csharp :: how to set window position 
Csharp :: c# convert datatable to csv 
Csharp :: listview android studio java 
Csharp :: change text color wpf 
Csharp :: unity event trigger 
Csharp :: leantween move ui 
Csharp :: why doesnt the if command work in C# 
Csharp :: c# jump space 
Csharp :: c# codebehind Append div 
Html :: input tag no suggestions 
Html :: add mailto in html 
Html :: call link html 
Html :: bootstrap 5 carousel disable autoplay 
Html :: html body full height 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =