Src/Newtonsoft.Dson/DsonWriter.cs
/// <summary>
/// Writes the specified end token.
/// </summary>
/// <param name="token">The end token to write.</param>
Writes the specified end token.
Writes the specified end token .
protected override void WriteEnd(JsonToken token)
        {
            switch (token)
            {
                case JsonToken.EndObject:
                    EnsureSpace();
                    WriteInternal("wow");
                    break;
                case JsonToken.EndArray:
                    EnsureSpace();
                    WriteInternal("many");
                    break;
                case JsonToken.EndConstructor:
                    throw new JsonWriterException("Cannot write JSON constructor as DSON.");
                default:
                    throw new JsonWriterException("Invalid JsonToken: " + token);
            }
        }
protected override void WriteEnd ( JsonToken token ) { switch ( token ) { case JsonToken . EndObject : EnsureSpace ( ) ; WriteInternal ( " " ) ; break ; case JsonToken . EndArray : EnsureSpace ( ) ; WriteInternal ( " " ) ; break ; case JsonToken . EndConstructor : throw new JsonWriterException ( " " ) ; default : throw new JsonWriterException ( " " + token ) ; } }
Writes the specified end token.
Writes the specified end token .
token
JsonToken
The end token to write.
The end token to write .