Skip to content

Commit 9b7ff43

Browse files
Update options.md
1 parent 01cadbf commit 9b7ff43

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/pages/api/options.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,22 @@ var context = new EvalContext();
3434
context.CacheKey = Guid.NewGuid().ToString();
3535
{% endhighlight %}
3636

37+
## IncludeMemberFromAllParameters
38+
Gets or sets if all members should be included from all parameters.
39+
40+
By default, member are only included when one parameter is specified.
41+
42+
> This configuration can be very useful to disable if you execute multiple expression only once, and you believe they will never be re-used.
43+
44+
### Example
45+
{% highlight csharp %}
46+
// using Z.Expressions; // Don't forget to include this.
47+
var context = new EvalContext();
48+
context.IncludeMemberFromAllParameters = true;
49+
50+
Eval.Execute<bool>("catPropertyName == dogPropertyName", cat, dog);
51+
{% endhighlight %}
52+
3753
## UseCache
3854
Gets or sets if compiled delegate shoud be cached in the memory or not.
3955

0 commit comments

Comments
 (0)