public static void Demo() { Procedure someProcs = null; someProcs += new Procedure(DelegateDemo.Method1); someProcs += new Procedure(Method2); // Example with omitted class name DelegateDemo demo = new DelegateDemo(); someProcs += new Procedure(demo.Method3); someProcs(); }
public void DelegateTest() { DelegateDemo.Main(); }
public void DelegateTest() { DelegateDemo.Demo(); }