public static void Main(string[] args) { AType atype = new AType(); SimpleDelegate1 s1 = new SimpleDelegate1(atype.F1); SimpleDelegate2 s2 = new SimpleDelegate2(atype.F2); s1(); s2(1234); }
/* Test structures as arguments and return values of delegates */ public static int test_0_marshal_struct_delegate () { SimpleDelegate2 d = new SimpleDelegate2 (delegate_test_struct); return mono_test_marshal_delegate2 (d); }
public static extern int mono_test_marshal_delegate2 (SimpleDelegate2 d);