コード例 #1
0
ファイル: pinvoke2.cs プロジェクト: xia13520/dnSpy-Unity-mono
    public static int test_0_amd64_struct2()
    {
        Amd64Struct2 s = new Amd64Struct2();

        s.i = 5;
        s.j = -5;

        Amd64Struct2 s2 = mono_test_marshal_amd64_pass_return_struct2(s);

        return(((s2.i == 6) && (s2.j == -4)) ? 0 : 1);
    }
コード例 #2
0
 public static extern Amd64Struct2 mono_test_marshal_amd64_pass_return_struct2(Amd64Struct2 s);
コード例 #3
0
ファイル: pinvoke2.cs プロジェクト: xia13520/dnSpy-Unity-mono
 public static extern Amd64Struct2 mono_test_marshal_amd64_pass_return_struct2(Amd64Struct2 s);
コード例 #4
0
    public static int test_0_amd64_struct2()
    {
        Amd64Struct2 s = new Amd64Struct2 ();
        s.i = 5;
        s.j = -5;

        Amd64Struct2 s2 = mono_test_marshal_amd64_pass_return_struct2 (s);

        return ((s2.i == 6) && (s2.j == -4)) ? 0 : 1;
    }