fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. var a = new { a = 5};
  8. var b = new { 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 33816KB
stdin
Standard input is empty
stdout
True
<>__AnonType0`1[System.Int32]
<>__AnonType0`1[System.Int32]