Ejemplo n.º 1
0
        public override string ToString()
        {
            String returnVal = String.Format("[Composite Component: ({0})", this.GetHashCode());

            DLink pNode = this.poHeadChild;

            while (pNode != null)
            {
                returnVal += pNode.ToString();
                returnVal += ", ";
                pNode      = pNode.GetNext();
            }

            return(returnVal + " ]\n");
        }
        public override string ToString()
        {
            String returnVal = "[GameObjectComposite: " + base.ToString();

            DLink pNode = this.poHeadChild;

            while (pNode != null)
            {
                returnVal += pNode.ToString();
                returnVal += ", ";
                pNode      = pNode.GetNext();
            }

            return(returnVal + " ]\n");
        }