delegate void D(int x); class Test { public static void M1(int i) {...} public void M2(int i) {...} } class Demo { static void Main() { D cd1 = new D(Test.M1); // static method Test t = new Test(); D cd2 = new D(t.M2); // instance method D cd3 = new D(cd2); // another delegate } }end example]
| |
Jagger Software Ltd | |
Company # 4070126 | |
VAT # 762 5213 42 |