Open sandboxFocus

Class ExpressionBuilderExtensions

Extension methods for IExpressionBuilder and INotNullExpressionBuilder.

Inheritance
ExpressionBuilderExtensions
Namespace: Metalama.Framework.Code.SyntaxBuilders
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public static class ExpressionBuilderExtensions
Remarks

These extension methods provide a convenient way to get a dynamic value from an expression builder, which can then be used directly in template code. The ToValue(IExpressionBuilder) method calls ToExpression() and then accesses Value.

Methods

Name Description
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.

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.

See Also