private void ReadNull() { string s = ReadName(/* allowQuotes */ false); if ((s == null) || !s.Equals("null", StringComparison.Ordinal)) { throw new FormatException("Invalid null literal."); } }