Interface ICompiledDelegateCache
Interface describing a cache holding compiled delegates.
Namespace: System.Linq.Expressions
Assembly: Nuqleon.Linq.CompilerServices.dll
Syntax
public interface ICompiledDelegateCache
  Properties
Count
Gets the number of entries in the cache.
Declaration
int Count { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
Methods
Clear()
Clears the cache.
Declaration
void Clear()
  GetOrAdd(LambdaExpression)
Gets a compiled delegate from the cache if the specified lambda expression already has been compiled. Otherwise, compiles the lambda expression to a delegate and stores the result.
Declaration
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.  |