Beispiel #1
0
        /// <summary>
        /// Writes automatically embedded array begin/end statements for parent object's member name, if call to this method is enclosed in 'using' statement.
        /// </summary>
        public IJSonWriterArrayItem WriteArray(string name)
        {
            if (_arrayHelper == null)
                _arrayHelper = new ArrayWriter(this);

            WriteMember(name);
            return _arrayHelper.WriteArrayBegin();
        }
Beispiel #2
0
        /// <summary>
        /// Writes automatically array begin/end statements, if call to this method is enclosed in 'using' statement.
        /// </summary>
        public IJSonWriterArrayItem WriteArray()
        {
            if (_arrayHelper == null)
                _arrayHelper = new ArrayWriter(this);

            return _arrayHelper.WriteArrayBegin();
        }