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