Hello I have one List of List Which is dynamic means some times my list contains two lists or some time it will contais three lists like here we can say my List contais three lists.
list1.Add(new Schema() { High = 10, Low = 8, OpenValue = 7, Price = 8.5, Time = DateTime.Today.AddDays(-7), Volume = 234234232 });
list2.Add(new Schema() { High = 10, Low = 8, OpenValue = 7, Price = 8.5, Time = DateTime.Today.AddDays(-6), Volume = 234234232 });
list3.Add(new Schema() { High = 10, Low = 8, OpenValue = 7, Price = 8.5, Time = DateTime.Today.AddDays(-7), Volume = 234234232 });
and I have
List<List<Schema>> llsl = new List<List<Schema>>();
llsl.Add(list1);
llsl.Add(list2);
llsl.Add(list3);
now I want to compare List with each other like First I have to Compare list1 to list2
then list1 to list3
then list2 to list3
then list2 to list1
and so on so can anyone please help me how can I Achive it.
The purpose of doing it I want to final list which contais same no of Items let's us say my list1 Contain date 20 feb same my list3 also Contain a date 20feb but my list2 doesn't contain so I want final list which contains all three list but list2 with null value because it's not contains 20 feb so basically I want to compare dates in lists.
Thanks in Advance.
>` and then try `compare` `except` `groupby`. It is not clear what actually you mean by compare.
– Mahesh Feb 27 '15 at 11:01