/* Test that the delegate wrapper correctly catches null byref arguments */ public static int test_0_marshal_byref_class_delegate_null() { SimpleDelegate5 d = new SimpleDelegate5(delegate_test_class_byref); try { mono_test_marshal_delegate6(d); return(1); } catch (ArgumentNullException ex) { return(0); } }
/* Test that the delegate wrapper correctly catches null byref arguments */ public static int test_0_marshal_byref_class_delegate_null () { SimpleDelegate5 d = new SimpleDelegate5 (delegate_test_class_byref); try { mono_test_marshal_delegate6 (d); return 1; } catch (ArgumentNullException ex) { return 0; } }
/* Test classes as byref arguments of delegates */ public static int test_0_marshal_byref_class_delegate () { SimpleDelegate5 d = new SimpleDelegate5 (delegate_test_class_byref); return mono_test_marshal_delegate5 (d); }
public static extern int mono_test_marshal_delegate6 (SimpleDelegate5 d);
/* Test classes as byref arguments of delegates */ public static int test_0_marshal_byref_class_delegate() { SimpleDelegate5 d = new SimpleDelegate5(delegate_test_class_byref); return(mono_test_marshal_delegate5(d)); }
public static extern int mono_test_marshal_delegate6(SimpleDelegate5 d);