Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public extern static void StructInStructByVal(ref Person2 person);