Skip to content

Instantly share code, notes, and snippets.

@DavidKlempfner
Created December 12, 2019 10:18
Show Gist options
  • Save DavidKlempfner/05bc01c4b86927366b53d2c0c78fa267 to your computer and use it in GitHub Desktop.
Save DavidKlempfner/05bc01c4b86927366b53d2c0c78fa267 to your computer and use it in GitHub Desktop.
CIL1.cs
class Program
{
static void Main(string[] args)
{
checked
{
byte b = byte.MaxValue; //255
b += 1; //OverflowException here
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment