示例#1
0
        public K[] getAllKeys()
        {
            List <K> r = new List <K>();

            r.Add(key);
            r.AddRange(left == null ? new K[0] : left.getAllKeys());
            r.AddRange(right == null ? new K[0] : right.getAllKeys());
            return(r.ToArray());
        }
示例#2
0
        public K[] getAllKeys()
        {
            if (root == null)
            {
                return(new K[0]);
            }

            return(root.getAllKeys());
        }