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); }
private static extern void TestStructInStructByVal(ref Person2_Flattened person);