private static void StructAsValFieldFlattened() { Console.WriteLine("\nThe structure is a member of the value type(flattened)"); Person2_Flattened person = new Person2_Flattened(); person.last = "Hou"; person.first = "Jiajun"; person.displayName = string.Empty; person.age = 26; CPlusPlusLib.StructInStructByVal(ref person); }
public extern static void StructInStructByVal(ref Person2_Flattened person);