Example #1
0
        private static void TestStructAsValFieldFlattened()
        {
            Console.WriteLine("\n�ṹ����Ϊֵ���ͳ�Ա��flattened��");
            Person2_Flattened person = new Person2_Flattened();
            person.last = "Huang";
            person.first = "Jizhou";
            person.displayName = string.Empty;
            person.age = 26;

            TestStructInStructByVal(ref person);
        }
Example #2
0
 private static extern void TestStructInStructByVal(ref Person2_Flattened person);