public void Set(ObjectCacheNode ch) { if (ch == null || ch is ObjectRootCacheNode || ch == this) { throw new ArgumentException("ch and the name must be set and must not be the root node"); } children [ch.Name] = ch; }
public ObjectCacheNode this[ObjectPath path] { get{ ObjectCacheNode n = this; for (int i = 0; i < path.Length; i++) { if ((n = n [path[i]]) == null) { break; } } return(n); } }
public void Set(ObjectCacheNode ch) { if (ch == null || ch is ObjectRootCacheNode || ch == this) throw new ArgumentException("ch and the name must be set and must not be the root node"); children [ch.Name] = ch; }