Anonymous type is created with var and new.using System;class Test{ static void Main() { var person = new { Name = "J" }; Console.WriteLine(person.Name); }}The output:J