List<MyClass> list = new List<MyClass>; List<List<MyClass>> Lists= new List<List<MyClass>>(); If (List.Exists(x => x.ItemID == itemIndicator.ItemID))
If (Lists.Exists(x => x.ItemID == itemIndicator.ItemID))
If (Lists.Exists(x => x.Exists(y => y.ItemID == itemIndicator.ItemID)))
<pre>if(lists.SelectMany(x => x).ToList().Exists(y => y.ItemID == itemIndicator.ItemID))
Any
lists.SelectMany(x => x).Any(y => y.ItemID == itemIndicator.ItemID)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)