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;
});
}
}