コード例 #1
0
 /// <summary>
 /// Does the specified Node or any descendant have a true IsKey value? This will throw an exception for a null node.
 /// </summary>
 public bool ContainsAnyValues()
 {
     return(
         (Key != null) ||
         ((LeftChild != null) && LeftChild.ContainsAnyValues()) ||
         ((MiddleChild != null) && MiddleChild.ContainsAnyValues()) ||
         ((RightChild != null) && RightChild.ContainsAnyValues())
         );
 }