private string ReadName(bool allowQuotes)
{
char ch = PeekNextSignificantCharacter();
if ((ch == '"') || (ch == '\'')) {
if (allowQuotes) {
return ReadString();
}
}
else {
StringBuilder sb = new StringBuilder();
while (true) {
ch = (char)_reader.Peek();
if ((ch == '_') || Char.IsLetterOrDigit(ch)) {
_reader.Read();
sb.Append(ch);
}
else {
return sb.ToString();
}
}
}
return null;
}