Beispiel #1
0
        private static void TestUnion()
        {
            SimpleUnion u = new SimpleUnion();
            u.i = 10;
            TestUnion(u, 1);

            u.d = 10.10;
            TestUnion(u, 2);
        }
Beispiel #2
0
 private static extern void TestUnion(SimpleUnion u, int type);