Skip to content

Commit 0bfd23a

Browse files
committed
Updating readme
1 parent 67e90ac commit 0bfd23a

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,27 @@ The extension method (in the namespace `AgileObjects.ReadableExpressions`) is us
1111

1212
...it also works on [DynamicLanguageRuntime](https://www.nuget.org/packages/DynamicLanguageRuntime) expressions.
1313

14-
You can optionally maintain explicit generic arguments on method calls where they are implied like so:
14+
### Options
1515

16-
string readable = myExpression.ToReadableString(c => c.UseExplicitGenericParameters);
16+
To maintain explicit generic arguments on method calls where they are implied, use:
17+
18+
string readable = myExpression
19+
.ToReadableString(c => c.UseExplicitGenericParameters);
20+
21+
To include namespaces when outputting Type names, use:
22+
23+
string readable = myExpression
24+
.ToReadableString(c => c.UseFullyQualifiedTypeNames);
25+
26+
To define a custom factory for naming anonymous types, use:
27+
28+
string readable = myExpression
29+
.ToReadableString(c => c.NameAnonymousTypesUsing(anonType => GetAnonTypeName(anonType)));
30+
31+
To output a source code comment when a lambda is '[quoted](https://stackoverflow.com/questions/3716492/what-does-expression-quote-do-that-expression-constant-can-t-already-do)', use:
32+
33+
string readable = myExpression
34+
.ToReadableString(c => c.ShowQuotedLambdaComments);
1735

1836
### Debugger Visualizers
1937
An installer for a set of Debugger Visualizers which use the extension method for Expressions can be downloaded from

0 commit comments

Comments
 (0)