fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. var a = new { a = 5, b = 7};
  8. var b = new { b = 7, a = 6 };
  9.  
  10. Console.WriteLine(a.GetType() == b.GetType());
  11. Console.WriteLine(a.GetType());
  12. Console.WriteLine(b.GetType());
  13. }
  14. }
Success #stdin #stdout 0.02s 33824KB
stdin
Standard input is empty
stdout
False
<>__AnonType0`2[System.Int32,System.Int32]
<>__AnonType1`2[System.Int32,System.Int32]