private void Expect (int expected) { int ch = ReadChar (); if (ch != expected) { throw NotWFError (String.Format (CultureInfo.InvariantCulture, "expected '{0}' ({1:X}) but found '{2}' ({3:X})", (char) expected, expected, (char) ch, ch)); } }