ToString() 공개 메소드

Returns the pretty printed string representation of the Expression.
public ToString ( ) : string
리턴 string
예제 #1
0
        // public methods
        /// <summary>
        /// Pretty prints an Expression.
        /// </summary>
        /// <param name="node">The Expression to pretty print.</param>
        /// <returns>A string containing the pretty printed Expression.</returns>
        public static string PrettyPrint(Expression node)
        {
            var prettyPrinter = new ExpressionPrettyPrinter();

            prettyPrinter.Visit(node);
            return(prettyPrinter.ToString());
        }
 // public methods
 /// <summary>
 /// Pretty prints an Expression.
 /// </summary>
 /// <param name="node">The Expression to pretty print.</param>
 /// <returns>A string containing the pretty printed Expression.</returns>
 public static string PrettyPrint(Expression node)
 {
     var prettyPrinter = new ExpressionPrettyPrinter();
     prettyPrinter.Visit(node);
     return prettyPrinter.ToString();
 }