Skip to content

geeksarray/dataTable-comparison-using-linq-except-intersect-and-union

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DataTable Comparison Using LINQ Except, Intersect and Union

This article describes you how to compare DataTables to get matched, unmatched, combine list of all rows in both tables.

You can use DataTable extension methods like Except to get matched DataRows, Intersect to get unmatched DataRows and Union to get unique combine list of DataRows from all DataTables.

Files

  1. CompareDataTables/Program.cs - creates two different DataTables to hold data of Math and English student. It also have methods to find students who registered for both, only english, only math, and all students.

Following pic shows you all function

compare datatables in C#

For more details on implementation click here

About

This article describes you how to compare DataTables to get matched, unmatched, combine list of all rows in both tables.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages