I want to do something like CY:
class Container {
public void ForEach(Action method) {
foreach (MyClass myObj in sequence) myObj.method();
}
}
containerObj.ForEach(MyClass.Method);
In C ++, I would use something like std :: mem_fun. How can I do this in C #?
source
to share