ExpressionFormatter icon indicating copy to clipboard operation
ExpressionFormatter copied to clipboard

Pretty printer and visitor for System.Linq.Expressions.Expression

Simple Demo:

	static void Main (string [] args)
	{
		Expression<Func<int, bool>> expr = x => x % 2 == 0;
		Console.WriteLine (expr.Format ());

		Console.WriteLine ();

		var query =
			from c in "The quick brown fox uses LINQPad".AsQueryable ()
			where c != ' '
			orderby c
			select char.ToUpper (c);

		Console.WriteLine (query.Expression.Format ());
	}