Example #1
0
        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);
        }
Example #2
0
 public extern static void StructInStructByVal(ref Person2_Flattened person);