Exemplo n.º 1
0
    public static int test_0_corlib_call()
    {
        var alist2 = new ArrayList(10);
        var alist  = InterpOnly.corlib_call();

        return(alist.Capacity == 5 ? 0 : 1);
    }
Exemplo n.º 2
0
 public static int test_0_eh_throw_from_interp()
 {
     try {
         InterpOnly.throw_from_interp();
         return(1);
     } catch (ArgumentNullException ex) {
         return(0);
     }
     return(2);
 }
Exemplo n.º 3
0
    public static int test_2_entry_delegate_created_in_interp()
    {
        Func <int, int> func = InterpOnly.create_del();

        return(func(1));
    }
Exemplo n.º 4
0
    public static int test_0_entry_vcall_virtual_wrapper()
    {
        InterpOnlyIFace iface = new InterpOnly();

        return(iface.virt2(new FooStruct(), new FooStruct()) == typeof(FooStruct) ? 0 : 1);
    }
Exemplo n.º 5
0
    public static int test_0_entry_vcall_virtual()
    {
        InterpOnlyIFace iface = new InterpOnly();

        return(iface.virt <int> () == typeof(int) ? 0 : 1);
    }
Exemplo n.º 6
0
    public static int test_1_entry_vcall()
    {
        InterpOnlyIFace iface = new InterpOnly();

        return(iface.get_Field2());
    }
Exemplo n.º 7
0
 public static int test_21_entry_sig()
 {
     return(InterpOnly.entry_sig((byte)1, (byte)2, (byte)3, (byte)4, (byte)5, (byte)6));
 }
Exemplo n.º 8
0
 public static int test_0_eh_throw_into_interp()
 {
     return(InterpOnly.throw_into_interp());
 }
Exemplo n.º 9
0
 public static int test_2_entry_simple()
 {
     return(InterpOnly.entry_1(1));
 }