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 4.0.
The extension method (in the namespace AgileObjects.ReadableExpressions
) is used like so:
string readable = myExpression.ToReadableString();
You can optionally maintain explicit generic arguments on method calls where they are implied like so:
string readable = myExpression.ToReadableString(c => c.UseExplicitGenericParameters);
An installer for a set of Debugger Visualizers which use the extension method for Expressions can be downloaded from the Visual Studio Gallery.
You can download and install using the NuGet package, or clone the repository on GitHub.