Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# linq remove duplicate items from list of integer

List<int> distinct = list.Distinct().ToList();
Comment

remove duplicates in the list using linq

var distinctItems = items.Distinct();
Comment

PREVIOUS NEXT
Code Example
Csharp :: sealed method in c# 
Csharp :: mvc c# return renderPartial 
Csharp :: c# datagridview set column header alignment 
Csharp :: edit list element linq c# 
Csharp :: Save object to file C# 
Csharp :: unity check if gameobject is inside collider 
Csharp :: select range in list c# 
Csharp :: checkbox in c# 
Csharp :: c# webapi return file 
Csharp :: unity c# find object position in array 
Csharp :: c# read excel file using epplus save to datatable 
Csharp :: IsInstanceOf nunit 
Csharp :: c# record 
Csharp :: C# Calculate MD5 Checksum For A File 
Csharp :: docker Test a Connection using Curl 
Csharp :: what is float in c# 
Csharp :: store data between razor pages 
Csharp :: how to get relative path in c# 
Csharp :: how to check if an integer is in array c# 
Csharp :: c# progress bar timer 
Csharp :: Lambda Expression to filter a list of list of items 
Csharp :: c# get file author 
Csharp :: c# mock ref parameter 
Csharp :: 405 - HTTP verb used to access this page is not allowed 
Csharp :: unity error log 
Csharp :: c# float min value 
Csharp :: unity GUI TextField enter 
Csharp :: c# list object 
Csharp :: c# get all id of list object 
Csharp :: catch multiple exception c# 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =