예제 #1
0
 public TestObject()
 {
     Name  = "Testing";
     Items = new List <string> {
         "One", "Two", "Three"
     };
     KeysAndValues = new Dictionary <string, string> {
         { "Key", "Value" },
         { "AnotherKey", "AnotherValue" },
         { "Such", "Wow" }
     };
     Nested = new NestedTestObject {
         Id    = 0,
         Value = 7.3
     };
     Multiples = new List <NestedTestObject> {
         new NestedTestObject {
             Id    = 1,
             Value = 14.6
         },
         new NestedTestObject {
             Id    = 2,
             Value = 29.2
         },
         new NestedTestObject {
             Id    = 3,
             Value = 58.4
         }
     };
 }
예제 #2
0
 public TestObject ()
 {
     Name = "Testing";
     Items = new List<string> { "One", "Two", "Three" };
     KeysAndValues = new Dictionary<string, string> {
         { "Key", "Value" },
         { "AnotherKey", "AnotherValue" },
         { "Such", "Wow" }               
     };
     Nested = new NestedTestObject {
         Id = 0,
         Value = 7.3
     };
     Multiples = new List<NestedTestObject> {
         new NestedTestObject {
             Id = 1,
             Value = 14.6
         },
         new NestedTestObject {
             Id = 2,
             Value = 29.2
         },
         new NestedTestObject {
             Id = 3,
             Value = 58.4
         }
     };
 }