fork(1) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. enum FooBar
  6. {
  7. Foo = 2,
  8. Bar = 1,
  9. }
  10.  
  11. public static void Main()
  12. {
  13. FooBar x = new FooBar();
  14. Console.WriteLine("ToString: " + x.ToString());
  15. Console.WriteLine("x == Foo? " + (x==FooBar.Foo));
  16. Console.WriteLine("x == Bar? " + (x==FooBar.Bar));
  17. }
  18. }
Success #stdin #stdout 0.04s 34784KB
stdin
Standard input is empty
stdout
ToString: 0
x == Foo? False
x == Bar? False