The scope of the C# checked/unchecked keyword is static, not dynamic

added by Paul Wheeler
8/18/2014 7:44:52 PM

3 Kicks, 85 Views

C# has operators checked and unchecked to control the behavior of the language in the face of integer overflow. There are also checked and unchecked statements which apply the behavior to blocks of statements rather than single expressions.