Akka.Configuration.Hocon.HoconTokenizer.PullArrayEnd C# (CSharp) Метод

PullArrayEnd() публичный Метод

Retrieves a TokenType.ArrayEnd token from the tokenizer's current position.
public PullArrayEnd ( ) : Akka.Configuration.Hocon.Token
Результат Akka.Configuration.Hocon.Token
        public Token PullArrayEnd()
        {
            Take();
            return new Token(TokenType.ArrayEnd);
        }

Usage Example

Пример #1
0
        /// <summary>
        /// Retrieves the next array token from the tokenizer.
        /// </summary>
        /// <returns>An array of elements retrieved from the token.</returns>
        public HoconArray ParseArray(string currentPath)
        {
            var arr = new HoconArray();

            while (!_reader.EoF && !_reader.IsArrayEnd())
            {
                var v = new HoconValue();
                ParseValue(v, currentPath);
                arr.Add(v);
                _reader.PullWhitespaceAndComments();
            }
            _reader.PullArrayEnd();
            return(arr);
        }
All Usage Examples Of Akka.Configuration.Hocon.HoconTokenizer::PullArrayEnd