Show / Hide Table of Contents

Interface IExpressionInterningCache

Interface for expression interning cache.

Namespace: System.Linq.Expressions
Assembly: Nuqleon.Linq.CompilerServices.dll
Syntax
public interface IExpressionInterningCache

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(Expression)

Rewrites the given expression tree with nodes from the cache.

Declaration
Expression GetOrAdd(Expression expression)
Parameters
Type Name Description
System.Linq.Expressions.Expression expression

The expression to rewrite.

Returns
Type Description
System.Linq.Expressions.Expression

An equivalent expression with pre-cached nodes replacing nodes in the given tree.

Remarks

As a side-effect, adds each new node to the cache.

In This Article
Back to top Generated by DocFX