ToDurable(IExpression)
Returns a representation of an expression that is safe to be held across compilations.
Declaration
public static IDurableExpression ToDurable(this IExpression expression)Parameters
| Type | Name | Description |
|---|---|---|
| IExpression | expression |
Returns
| Type | Description |
|---|---|
| IDurableExpression |
Remarks
The counterpart of ToDurableRef<T>(T) for expressions. Call ToExpression(ICompilation) to get the expression back.
The expression is rendered when this method is called, so call it while the expression is still usable.