Class VoidCompiledDelegateCache
Void compiled delegate cache that just compiles lambda expressions without storing them.
Inheritance
System.Object
VoidCompiledDelegateCache
Implements
Namespace: System.Linq.Expressions
Assembly: Nuqleon.Linq.CompilerServices.dll
Syntax
public class VoidCompiledDelegateCache : Object, ICompiledDelegateCache
Properties
Count
Gets the number of entries in the cache. Always returns zero.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Instance
Gets the singleton instance of the void compiled delegate cache.
Declaration
public static ICompiledDelegateCache Instance { get; }
Property Value
Type | Description |
---|---|
ICompiledDelegateCache |
Methods
Clear()
Clears the cache. This operation has no effect.
Declaration
public void Clear()
GetOrAdd(LambdaExpression)
Compiles the lambda expression to a delegate and returns the result.
Declaration
public Delegate GetOrAdd(LambdaExpression expression)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.LambdaExpression | expression | Lambda expression to look up in the cache. |
Returns
Type | Description |
---|---|
System.Delegate | Compiled delegate to execute the lambda expression. |