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
This should work:
var result = from a in listA from b in listB where b.IsCorrect(a) select new {a, b}; foreach (var item in result) item.b.DoSomething(item.a);