using System; public class Test { public static void Main() { var a = new { a = 5}; var b = new { a = 6 }; Console.WriteLine(a.GetType() == b.GetType()); Console.WriteLine(a.GetType()); Console.WriteLine(b.GetType()); } }