Пример #1
0
        public void Add(string key, IFlexNode value)
        {
            if (ReferenceEquals(this.properties, Util.EmptyMap))
            {
                this.properties = new OrderedDictionary <string, IFlexNode>();
            }

            this.properties.Add(key, value);
        }
Пример #2
0
        public void Insert(int index, string key, IFlexNode value)
        {
            if (ReferenceEquals(this.properties, Util.EmptyMap))
            {
                this.properties = new OrderedDictionary <string, IFlexNode>();
            }

            this.properties.Insert(index, key, value);
        }
Пример #3
0
 public bool TryGetValue(string key, [MaybeNullWhen(false)] out IFlexNode value)
 => this.properties.TryGetValue(key, out value);