Ejemplo n.º 1
0
        public static TestClassWithStruct MakeTestClassWithStruct()
        {
            var retVal = new TestClassWithStruct {
                ID = _key++
            };

            retVal.Structs.Add(new TestStruct {
                Date = DateTime.Now, Value = new Random().Next()
            });
            return(retVal);
        }
Ejemplo n.º 2
0
 public static TestClassWithStruct MakeTestClassWithStruct()
 {
     var retVal = new TestClassWithStruct {ID = _key++};
     retVal.Structs.Add(new TestStruct { Date=DateTime.Now, Value = new Random().Next()});
     return retVal;
 }