AgileObjects.ReadableExpressions 4.1.3

dotnet add package AgileObjects.ReadableExpressions --version 4.1.3
                    
NuGet\Install-Package AgileObjects.ReadableExpressions -Version 4.1.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AgileObjects.ReadableExpressions" Version="4.1.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AgileObjects.ReadableExpressions" Version="4.1.3" />
                    
Directory.Packages.props
<PackageReference Include="AgileObjects.ReadableExpressions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AgileObjects.ReadableExpressions --version 4.1.3
                    
#r "nuget: AgileObjects.ReadableExpressions, 4.1.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AgileObjects.ReadableExpressions@4.1.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AgileObjects.ReadableExpressions&version=4.1.3
                    
Install as a Cake Addin
#tool nuget:?package=AgileObjects.ReadableExpressions&version=4.1.3
                    
Install as a Cake Tool

ReadableExpressions

ReadableExpressions provides extension methods and a Debugger Visualizer for readable, source-code versions of Expression Trees, as well as reflection objects like Type, FieldInfo, PropertyInfo, etc.

Debugger Visualizer

The Debugger Visualizer installer can be downloaded from Visual Studio Marketplace.

The visualizer has both Light and Dark themes:

Visualizer themes

...and output can be customised using various options:

Visualizer options

ASP.NET Core 5 Known Issue

.NET 5 had a breaking change, which disables BinaryFormatter serialization by default. This has caused issues with the ReadableExpressions visualizers (and elsewhere) when debugging ASP.NET Core apps as the VS debugger uses BinaryFormatter to serialize objects before sending them to the visualizer.

The solution is to enable the BinaryFormatter in Debug only by adding the following to your ASP.NET Core csproj:

<PropertyGroup>
  <TargetFramework>net5.0</TargetFramework>
  <EnableUnsafeBinaryFormatterSerialization Condition=" '$(Configuration)' == 'Debug' ">
    true
  </EnableUnsafeBinaryFormatterSerialization>
</PropertyGroup>

Extension Methods

The extension methods are available on NuGet, and target .NET 3.5+ and .NETStandard 1.0+:

PM> Install-Package AgileObjects.ReadableExpressions