Metalama 1.0 / / Metalama Documentation / Aspect API Documentation / Metalama.​Framework.​Code.​Syntax­Builders / Expression­Builder

Class ExpressionBuilder

Allows to build a run-time expression by composing a string thanks to an underlying 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
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.

Extension Methods

PresentingExtensions.AsHyperlink(Object)