ReadableExpressions
ReadableExpressions is an extension method for the Expression class and set of Debugger Visualizers to produce readable, source-code string versions of Expression Trees. It targets .NETStandard 1.0+ and .NET 3.5+.
Usage
The extension method (in the namespace AgileObjects.ReadableExpressions
) is used like so:
string readable = myExpression.ToReadableString();
...it also works on DynamicLanguageRuntime expressions.
You can optionally maintain explicit generic arguments on method calls where they are implied like so:
string readable = myExpression.ToReadableString(c => c.UseExplicitGenericParameters);
Debugger Visualizers
An installer for a set of Debugger Visualizers which use the extension method for Expressions can be downloaded from the Visual Studio Gallery.
Download
You can download and install using the NuGet package, or clone the repository on GitHub.