// int i = int.MaxValue + 100; // Error: The operation overflows at compile time in checked mode // Following works for (int i = int.MaxValue; i > 0; i++) { i = i + 10; Console.WriteLine(i); }
i--
MaxValue +1 == Maxvalue *-1;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)