Exemplo n.º 1
0
    // ICustomMarshaler.MarshalNativeToManaged should not be called when the
    // parameter is marked as an out.
    public static int test_0_native_to_managed_custom_parameter()
    {
        Marshal6.managed_to_native_count = 0;
        Marshal6.native_to_managed_count = 0;
        //
        //  Beginn Aenderung Test
        //
        //int res = mono_test_marshal_custom_out_param_delegate (new custom_out_param_delegate (custom_out_param));
        custom_out_param_delegate del = new custom_out_param_delegate(custom_out_param);

        Console.WriteLine("\n\t****C#: custom_out_param_delegate del = new custom_out_param_delegate (custom_out_param) done ****\n");
        int res = mono_test_marshal_custom_out_param_delegate(del);

        //
        //  Ende Aenderung Test
        //
        if (Marshal6.managed_to_native_count != 1)
        {
            return(1);
        }
        if (Marshal6.native_to_managed_count != 0)
        {
            return(2);
        }

        return(0);
    }
Exemplo n.º 2
0
 private static extern int mono_test_marshal_custom_out_param_delegate(custom_out_param_delegate del);
Exemplo n.º 3
0
 private static extern int mono_test_marshal_custom_out_param_delegate(custom_out_param_delegate del);