Guest User

Untitled

a guest
Apr 20th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. public enum foo { bar0=0, bar1=1, bar2 = 2 }
  2.  
  3. foo item = foo.bar1;
  4. Console.WriteLine(item > 0 ? ">0" : "<0"); //does compile
  5. Console.WriteLine(item < 2 ? "<2" : ">2"); //does not compile
Add Comment
Please, Sign In to add comment