Beispiel #1
0
        /// <summary>
        /// Output a given expression tree to a string.
        /// </summary>
        internal static string ExpressionToString(Expression node)
        {
            Debug.Assert(node != null);
            ExpressionStringBuilder esb = new ExpressionStringBuilder();

            esb.Visit(node);
            return(esb.ToString());
        }
Beispiel #2
0
 public static string GetExpressionString(Expression expression)
 {
     var builder = new ExpressionStringBuilder();
     builder.Visit(expression);
     return builder.stringBuilder.ToString();
 }