agileobjects/ReadableExpressions
概要
Expression Tree を読みやすい C# ソースコードに変換するライブラリとデバッガービジュアライザーです。.NET 3.5+ と .NET Standard 1.0+ に対応しています。
開発ツール計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナル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:

...and output can be customised using various 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
To translate an Expression, use:
using AgileObjects.ReadableExpressions;
string readable = myExpression.ToReadableString();
...this also works on DynamicLanguageRuntime expressions.
All code is licensed with the MIT licence. Check out the documentation for more!
関連プロジェクトを探す
読み込み中…