コード例 #1
0
ファイル: Program.cs プロジェクト: grimmyfunz/BinaryTree
        public int Count()
        {
            int count = 1;

            if (LNode != null)
            {
                count += LNode.Count();
            }
            if (RNode != null)
            {
                count += RNode.Count();
            }
            return(count);
        }