private void Expect(char expected) { int c; if ((c = ReadChar()) != expected) { throw JsonError(SR.Format(SR.ArgumentException_ExpectedXButGotY, expected, (char)c)); } }