Guest User

Untitled

a guest
Jul 17th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.48 KB | None | 0 0
  1. void Main()
  2. {
  3.     int correct = 0;
  4.     int wrong = 0;
  5.     for(int i=0;i<10000000;++i)
  6.     {
  7.         CategoryA categoryALawyer = CategoryA.Lawyer;
  8.         if(categoryALawyer.ToString() != "Lawyer")
  9.             ++wrong;
  10.         else
  11.             ++correct;
  12.     }
  13.     correct.Dump();
  14.     wrong.Dump();
  15. }
  16.  
  17. // Define other methods and classes here
  18. public enum CategoryA
  19. {
  20.     Lawyer = 1,
  21.     UpdateStatus = 1,
  22.     Developer,
  23.     Manager,
  24.     Employee,
  25.     Director,
  26.  
  27. }
Add Comment
Please, Sign In to add comment