Yes the function returning void (no value) is Action
public Test() { // first approach Action firstApproach = delegate { // do your stuff }; firstApproach(); //second approach Action secondApproach = MyMethod; secondApproach(); } void MyMethod() { // do your stuff }
hope this helps
source share