Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# linq select only unique values from list

var uniq = allvalues.GroupBy(x => x.Id).Select(y=>y.First()).Distinct();
Comment

c# linq select only unique values from list

var uniqueCategories =  repository.GetAllProducts()
                                  .Select(p=>p.Category)
                                  .Distinct();
Comment

PREVIOUS NEXT
Code Example
Csharp :: LINQ query to select top 5 
Csharp :: c# convert double to int 
Csharp :: dotnet new api 
Csharp :: instantiate unity 2d in parent 
Csharp :: Convert array of strings to List<string 
Csharp :: raylib c# 
Csharp :: c# append array 
Csharp :: join two array c# 
Csharp :: unity rewarded ads 
Csharp :: dns ttl meaning 
Csharp :: unity find object by name 
Csharp :: Unity Interstitial ad C# 
Csharp :: c# if statement 
Csharp :: calling stored procedure in c# entity framework 
Csharp :: C# monogodb 
Csharp :: unity3d find y position on navmesh 
Csharp :: c# get certain character from string 
Csharp :: c# unescape string 
Csharp :: how to get keyboard input in unity 
Csharp :: c# list foreach 
Csharp :: c# datagridview select row right click 
Csharp :: c# get property type of list 
Csharp :: modulus program 
Csharp :: unity set sprite image from script 
Csharp :: Edit file C# 
Csharp :: c# wpf get clipboard text 
Csharp :: first person mouse look unity 
Csharp :: all Substring of String 
Csharp :: how to make a string a list of characters c# 
Csharp :: yield in c# 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =