private static void BadStack(int value) { string s; if (value < 0) { s = "Stack underflow: " + value; } else { s = "Too big stack: " + value; } throw new InvalidOperationException(s); }