What is compiler flagging for numbers in C#?
What is c开发者_C百科ompiler flagging for numbers in C#? What is the advantage of this work? I can't understand this concept.
There is a compiler flag /checked
. It deals with numeric over and under flows.
Using it will cause a value outside the range of the data type to cause a run-time exception.
精彩评论