示例#1
0
        public IEnumerable <T> InOrden()
        {
            if (Left != null)
            {
                foreach (T item in Left.InOrden())
                {
                    yield return(item);
                }
            }

            yield return(Key);

            if (Rigth != null)
            {
                foreach (T item in Rigth.InOrden())
                {
                    yield return(item);
                }
            }
        }
示例#2
0
 public IEnumerable <T> InOrden()
 {
     return(Count > 0 ? C_Root.InOrden() : C_Root.EmptyEnum());
 }