Exemplo 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);
        }
Exemplo 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;
 }