Exemplo n.º 1
0
        public void Automatic()
        {
            var person = new Person
            {
                Name    = "Erdal",
                Age     = 29,
                Contact = new Contact
                {
                    Email = "*****@*****.**",
                    Phone = "5531-123-123"
                }
            };

            person.Address.Add("Beşiktaş");
            person.Address.Add("İstanbul");
            Console.WriteLine(person.ToJson());
        }