fork(1) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. // your code goes here
  8. int x = 7;
  9. Int32 y = 7;
  10. Console.WriteLine(x == y);
  11. Console.WriteLine(y == x);
  12. Console.WriteLine(x.Equals(y));
  13. Console.WriteLine(y.Equals(x));
  14.  
  15. object ox = x;
  16. object oy = y;
  17. Console.WriteLine(ox == oy);
  18. Console.WriteLine(oy == ox);
  19. Console.WriteLine(ox.Equals(oy));
  20. Console.WriteLine(oy.Equals(ox));
  21. }
  22. }
Success #stdin #stdout 0s 131648KB
stdin
Standard input is empty
stdout
True
True
True
True
False
False
True
True