Ejemplo n.º 1
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);
        }
    }
Ejemplo n.º 2
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;
		}
	}
Ejemplo n.º 3
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);
	}
Ejemplo n.º 4
0
	public static extern int mono_test_marshal_delegate6 (SimpleDelegate5 d);
Ejemplo n.º 5
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));
    }
Ejemplo n.º 6
0
 public static extern int mono_test_marshal_delegate6(SimpleDelegate5 d);