Ejemplo n.º 1
0
        public static Tree DeepClone(Tree a_tree, object a_param)
        {
            if (a_tree == null)
            {
                return(null);
            }
            Tree newNode = (Tree)a_tree.DeepClone(a_param);

            newNode._size       = a_tree._size;
            newNode._preceding  = Tree.DeepClone(((Tree)a_tree._preceding), a_param);
            newNode._subsequent = Tree.DeepClone(((Tree)a_tree._subsequent), a_param);
            return(newNode);
        }
Ejemplo n.º 2
0
		public static Tree DeepClone(Tree a_tree, object a_param)
		{
			if (a_tree == null)
			{
				return null;
			}
			Tree newNode = (Tree)a_tree.DeepClone(a_param);
			newNode._size = a_tree._size;
			newNode._preceding = Tree.DeepClone(((Tree)a_tree._preceding), a_param);
			newNode._subsequent = Tree.DeepClone(((Tree)a_tree._subsequent), a_param);
			return newNode;
		}