MetalamaAPI documentationAspect APIMetalama.​Framework.​Code.​Syntax­BuildersExpression­Builder
Open sandboxFocus

ExpressionBuilder Class

Allows to build a run-time expression by composing a string thanks to an underlying System.Text.StringBuilder. Use the ToExpression() method to convert the ExpressionBuilder into a compile-time representation of the expression, or the ToValue(IExpressionBuilder) methods converts it to a dynamic expression that can be used in the C# code of the template.

Inheritance
System.Object
ExpressionBuilder
Implements
IExpressionBuilder
Namespace: Metalama.Framework.Code.SyntaxBuilders
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public sealed class ExpressionBuilder : SyntaxBuilder, IExpressionBuilder

Constructors

Name Description
ExpressionBuilder()

Methods

Name Description
Clone()

Returns a clone of the current ExpressionBuilder.

ToExpression()

Creates a compile-time IExpression from the current ExpressionBuilder.