I\'d like to ask if it is possible to convert below nested foreach loops to LINQ expression.
public interface IFoo { bool IsCorrect(IFoo foo); void DoSom
I'm not sure exactly how far you want to go with this, but this is a Linq statement doing the same thing:
listA.ForEach(a => listB.ForEach(b => { if (b.IsCorrect(a)) b.DoSomething(a); }));