Example #1
0
 static void Main(string[] args)
 {
     Person = GetPerson();
     RunBenchmarksForSampleTemplate();
     RunBenchmarksForNestedSampleTemplate();
     RunBenchmarksForDictionaryInput();
     RunBenchmarksForExpandoObject();
     RunBenchmarksForDynamicPerson();
     Console.ReadLine();
 }
Example #2
0
 private static Person GetPerson()
 {
     var person = new Person
     {
         Id = 42,
         Name = "Ahmad",
         DateOfBirth = DateTime.UtcNow,
         Address = new Address
         {
             ZipCode = Tuple.Create(Guid.NewGuid(), Guid.NewGuid().ToString()),
             DateModified = DateTime.Now
         }
     };
     return person;
 }