internal static string ExpressionToString(Expression e) { ExpressionWriter ew = new ExpressionWriter(); string serialized = null; serialized = ew.Translate(e); if (ew.cantTranslateExpression) { throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, SR.ALinqCantTranslateExpression, e.ToString())); } return serialized; }
internal static string ExpressionToString(Expression e) { ExpressionWriter ew = new ExpressionWriter(); string serialized = null; serialized = ew.Translate(e); if (ew.cantTranslateExpression) { throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, SR.ALinqCantTranslateExpression, e.ToString())); } return(serialized); }
private static string ExpressionToString(Expression expression) { return(ExpressionWriter.ExpressionToString(expression)); }