I wanna do something like this:
List<string> list = new List<string>();
... put some data in it ...
list.CallActionForEachMatch(x=>x.StartsWith("a"), ()=> Console.WriteLine(x + " matches!"););
Syntax: CallActionForEachMatch(Criteria, Action)
How is this possible? 🙂
I wouldn’t; I’d just use:
But you could use: