using System; public class Test { public static void Main() { string a = "hui"; int b = 42; var p = new {key = a, value = b}; string a2 = "pizda"; float b2 = 43; var p2 = new {key = a2, value = b2}; Console.WriteLine(p.GetType() == p2.GetType()); } }