30% OFF - 10th Anniversary discount on new purchases until December 15 with code: ZZZANNIVERSARY10
C# Eval Expression Eval Manager
Description
Static manager class for options shared between all instances.
Cache
Gets or sets the cache to use to cache compiled delegate.
Example
// using Z.Expressions; // Don't forget to include this.
EvalManager.Cache = MemoryCache.Default;
You can use your own cache provider inheriting from System.Runtime.Caching.ObjectCache
DefaultContext
Gets or sets the default context to use for all operations using the default context.
You can also directly change options
The default context is used in static methods:
Example
// using Z.Expressions; // Don't forget to include this. EvalManager.DefaultContext.RegisterExtensionMethod(typeof(Z.ExtensionMethods)) // Make member case insensitive (Math.pOW = Math.Pow) EvalManager.DefaultContext.BindingFlags = BindingFlags.IgnoreCase | context.BindingFlags
ZZZ Projects