Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# remove duplicates from datatable

private DataTable GetDistinct(DataTable dt)
{
    var UniqueRows = dt.AsEnumerable().Distinct(DataRowComparer.Default);
    DataTable dt2 = UniqueRows.CopyToDataTable();
    return dt2;
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: polybius square 
Csharp :: parse json array c# 
Csharp :: Unity Rigidbody how to set zero momentum 
Csharp :: get current assembly path c# 
Csharp :: c# stop process 
Csharp :: c# textbox numbers only 
Csharp :: look rotation only on y axis in unity 
Csharp :: unity mouse click position 
Csharp :: system.drawing.color from hex 
Csharp :: unity debug c# code with console 
Csharp :: unit test throw exception c# xunit 
Csharp :: distinct prime factors count of a number 
Csharp :: how to convert pdfdocument to binary in c# 
Csharp :: console reset color c# 
Csharp :: c# add char to string 
Csharp :: C# get md5 of file 
Csharp :: response redirect new tab 
Csharp :: c# insert character into string at position 
Csharp :: decimal c# 2 digits 
Csharp :: foreach enum 
Csharp :: c# add string to array 
Csharp :: How to take input on float in c# 
Csharp :: textbox in xamarin forms 
Csharp :: c# get all enum values 
Csharp :: c# oops concept 
Csharp :: check if file exist c# 
Csharp :: byte array to base64 c# 
Csharp :: if file exist rename c# 
Csharp :: dotnet core 3.1 get the user that just logged in 
Csharp :: c# set cursor pos 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =