I am trying to re-write the following using LINQ
foreach (WMCommon.Services.StakeOut.assembly ass in assemblies) { foreach (var agg in aggregate) {
Try this:
assemblies.ForEach(a => a.quantity = (aggregate.Where(p => p.catagory.unitActn == a.unitActn && p.catagory.unitCode == a.unitCode && p.catagory.unitLength == a.unitLength).Select(s=>s.qty)));
But mind it it wouldn't be faster