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