Пример #1
0
 public static ComplexStruct Generate()
 {
     return(new ComplexStruct()
     {
         Int = RandGen.GenerateInt(),
         One = ComplexClass.Generate()
     });
 }
Пример #2
0
        public static ComplexClass Generate()
        {
            ComplexClass tmp = new ComplexClass()
            {
                Int = RandGen.GenerateInt()
            };

            tmp.One = tmp;

            return(tmp);
        }