title: How to use multiple uncheckeds in c#
body: <p>Is there a way to use unchecked for a whole program or a whole block ?</p>
  
  <p>I'm translating something from java that has the type long and lots of comparisons with constants that are unsigned long... Some places there a some switch's with 20~30 cases... Do I have to uncheck every case individualy or is there a faster/easier way to do it?</p>
  
  <pre><code>case 101: 
     return jjMoveStringLiteralDfa5_0(active0, 0x8002010000000000L, active1, 0x1L);
  </code></pre>
  
  <p>I have to change to:</p>
  
  <pre><code>   return jjMoveStringLiteralDfa5_0(active0, unchecked((long)0x8002010000000000L), active1, 0x1L);
  </code></pre>
  
  <p>but there are many cases... and it is in a parser generator with lots of IF's, so It would be better to have something to suppress those checks in the whole file instead of searching every possible place that would generate those unsigned long constants...</p>
  
  <p>There is a way to set that on Visual Studio options but since I'm generating a parser I wanted to know if I could make that parser automaticaly not check for overflows/underflows, is that possible?</p>