Add Matches inside a loop

How can i add multiple Match clauses inside a loop?

Currently when i do this, the only thing that gets added is the first item in the List and thats it.

List<string> types = new();
b.Should(s =>
    types.ForEach(t => s.Match(m => m.Field("msgType").Query(t)));
    return s;

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.