Akka.Configuration.Hocon.HoconValue.IsObject C# (CSharp) Метод

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

Determines if this HoconValue is a HoconObject.
public IsObject ( ) : bool
Результат bool
        public bool IsObject()
        {
            return GetObject() != null;
        }

Usage Example

Пример #1
0
        private void ParseKeyContent(HoconValue value, string currentPath)
        {
            while (!_reader.EoF)
            {
                Token t = _reader.PullNext();
                switch (t.Type)
                {
                case TokenType.Dot:
                    ParseObject(value, false, currentPath);
                    return;

                case TokenType.Assign:

                    if (!value.IsObject())
                    {
                        //if not an object, then replace the value.
                        //if object. value should be merged
                        value.Clear();
                    }
                    ParseValue(value, currentPath);
                    return;

                case TokenType.ObjectStart:
                    ParseObject(value, true, currentPath);
                    return;
                }
            }
        }
All Usage Examples Of Akka.Configuration.Hocon.HoconValue::IsObject