Hi Team,
I have two list, Which has same data or some tiimes different data.
My requirement is if two list contains same data then need to some operation. So how to compare it.
Sample Data:
List 1:
var list1=new List<T>();
list1.Add(new PriceExcel{
Name="Test1",
Date="90",
Age="20"
});
List 2:
var list2=new List<T>();
list2.Add(new PriceExcel{
Name="Test1",
Date="90",
Age="20"
});
In above lists all the datas are same, So how to do comparison here.
If all datas are not equal then i need to create new list else need not to create new list.
Any Help would be appriciated..