コード例 #1
0
        /// <summary>
        /// Parses expecting an object in the source.
        /// </summary>

        private JsonToken ParseObject()
        {
            if (NextClean() != '{')
            {
                throw new JsonException("An object must begin with '{'.");
            }

            return(Yield(JsonToken.Object(), ParseObjectMemberMethod));
        }
コード例 #2
0
 protected override void WriteStartObjectImpl()
 {
     Write(JsonToken.Object());
 }