Example #1
0
 /// <summary>
 /// Gets the child node associated with the specified key.
 /// </summary>
 /// <param name="childKey">The key of the child node.</param>
 /// <param name="child">Returns the child node associated with the specified key, if the key is found; otherwise, <c>null</c>.</param>
 /// <returns></returns>
 public bool TryGetChild(TKey childKey, out DTree <TKey, TValue> child)
 {
     if (_children.IsNullOrEmpty())
     {
         child = null;
         return(false);
     }
     else
     {
         return(_children.TryGetValue(childKey, out child));
     }
 }