Ejemplo n.º 1
0
 public static FatherLowerCase CreateOne()
 {
     return(new FatherLowerCase
     {
         myint = 1,
         mystring = "Father",
         son = Son.CreateOne()
     });
 }
        public static FlattenCircularReference CreateOne()
        {
            var outer = new FlattenCircularReference
            {
                MyInt    = 1,
                MyString = "Outer",
                Son      = Son.CreateOne()
            };

            outer.CircularRef = new FlattenCircularReference
            {
                MyInt       = 2,
                MyString    = "Inner",
                CircularRef = outer
            };
            return(outer);
        }