vendredi 6 mars 2015

compare two list and change value with linq


Vote count:

0




i have 2 list like this


First list



code name number
1 name1 50
2 name2 6
3 name3 12


Second list



code number case
1 1 1
2 1 2
1 1 1
1 1 1
3 1 1


i want list 2 compare on list1 and if code is 1 check case , if case eql 1 from number list 1 -- else number ++ i want use linq but i dont know what to do finaly list after procces (list 1 and 2 is diffrent ienurable)



code name number
1 name1 47
2 name2 7
3 name3 11


asked 33 secs ago







compare two list and change value with linq

Aucun commentaire:

Enregistrer un commentaire