Show / Hide Table of Contents

Interface ICachesCSharpExpressions

An object which caches compiled CSharpExpression instances, based upon their identifiers.

Namespace: ZptSharp.Expressions.CSharpExpressions
Assembly: ZptSharp.CSharpExpressions.dll
Syntax
public interface ICachesCSharpExpressions

Methods

| Improve this Doc View Source

AddExpression(ExpressionDescription, CSharpExpression)

Adds a compiled C# expression to the cache.

Declaration
void AddExpression(ExpressionDescription description, CSharpExpression expression)
Parameters
Type Name Description
ExpressionDescription description

An object which uniquely identifies the expression.

CSharpExpression expression

The compiled C# expression.

| Improve this Doc View Source

GetExpression(ExpressionDescription)

Gets a compiled C# expression from the cache, or a null reference if there is no expression in the cache matching the identifier.

Declaration
CSharpExpression GetExpression(ExpressionDescription description)
Parameters
Type Name Description
ExpressionDescription description

An identifier for a compiled C# expression.

Returns
Type Description
CSharpExpression

A C# expression, or a null reference if the expression is not found.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX