Ejemplo n.º 1
0
        /// <summary>
        /// Overrides the ToString method to return more useful information
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            IVisitor visitor = new ToStringVisitor();

            Accept(visitor);
            return(String.Concat(new object[] { base.GetType().FullName, " {", visitor, "}" }));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Overrides the ToString method to print out an overview of the graph
        /// </summary>
        /// <returns></returns>

        public override string ToString()
        {
            ToStringVisitor toStringVisitor = new ToStringVisitor();

            base.Accept(toStringVisitor);
            return(String.Concat(new object[] { base.GetType().FullName, " {\r\n", toStringVisitor, "}" }));
        }