I can, therefore I am
Thursday, 22 January 2015
Check whether one list contain another list value in LINQ
var CheckExist = List1.Any(l1 => List2.Any(l2 => l1.Name == l2.Name));
Here CheckExist object will return true if any record of List1 contain in List2
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment