Is there a way to use unchecked for a whole program or a whole block ?
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?
case 101:
return jjMoveStringLiteralDfa5_0(active0, 0x8002010000000000L, active1, 0x1L);
I have to change to:
return jjMoveStringLiteralDfa5_0(active0, unchecked((long)0x8002010000000000L), active1, 0x1L);
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...
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?