private WriteCore ( string text, bool quotes ) : void | ||
text | string | |
quotes | bool | |
return | void |
private void WriteCore(string text, bool quotes)
{
if (_scopes.Count != 0) {
Scope currentScope = _scopes.Peek();
if (currentScope.Type == ScopeType.Array) {
if (currentScope.ObjectCount != 0) {
_writer.WriteTrimmed(", ");
}
currentScope.ObjectCount++;
}
}
if (quotes) {
_writer.Write('"');
}
_writer.Write(text);
if (quotes) {
_writer.Write('"');
}
}