static void Main(string[] args) { DoSomething doSomething = new DoSomething(); doSomething.CallMe <MyAction>(); }