Open sandboxFocus

Method ToValue

ToValue(IExpressionBuilder)

Gets an object that can be used in a run-time expression of a template to represent the result of the current expression builder.

Declaration
public static dynamic? ToValue(this IExpressionBuilder builder)
Parameters
Type Name Description
IExpressionBuilder builder

The expression builder.

Returns
Type Description
dynamic

A dynamic value representing the expression, or null if the expression evaluates to null.

ToValue(INotNullExpressionBuilder)

Gets an object that can be used in a run-time expression of a template to represent the result of the current expression builder.

Declaration
public static dynamic ToValue(this INotNullExpressionBuilder builder)
Parameters
Type Name Description
INotNullExpressionBuilder builder

The expression builder that produces a non-null value.

Returns
Type Description
dynamic

A dynamic value representing the expression.