static void Main(string[] args) { Person = GetPerson(); RunBenchmarksForSampleTemplate(); RunBenchmarksForNestedSampleTemplate(); RunBenchmarksForDictionaryInput(); RunBenchmarksForExpandoObject(); RunBenchmarksForDynamicPerson(); Console.ReadLine(); }
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; }