Nemo.Utilities.JsonValue.this C# (CSharp) Method

this() public method

public this ( string name ) : JsonValue
name string
return JsonValue
        public JsonValue this[string name]
        {
            get
            {
                //JsonValue value;
                //_properties.TryGetValue(name, out value);
                //return value;

                return _properties.GetOrAdd(name, key =>
                {
                    var child = FirstChild;
                    while (child != null)
                    {
                        if (child.Name == key)
                        {
                            _properties[key] = child;
                            return child;
                        }
                        child = child.NexSibling;
                    }
                    return null;
                });
            }
        }