CoreProduct coreproduct ; foreach (var sl in serviceList) { foreach (var cp in sl.coreProducts) { if (cp.coreProductKey == coreproductKey) { coreproduct = cp; break; } } }
foreach (var sl in serviceList) { var cp = sl.coreProducts.Find(x => x.coreProductKey == coreproductkey); if(cp!=null) { coreproduct = cp; break; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)