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

InterpolatedStringBuilder Class

Compile-time object that allows to build a run-time interpolated string.

Inheritance
InterpolatedStringBuilder
Namespace: Metalama.Framework.Code.SyntaxBuilders
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public sealed class InterpolatedStringBuilder : Object, INotNullExpressionBuilder, IExpressionBuilder

Constructors

Name Description
InterpolatedStringBuilder()

Properties

Name Description
ItemCount

Gets the number of items that have been added to the current builder.

Methods

Name Description
AddExpression(Object, Nullable<Int32>, String)

Adds an expression to the interpolated string.

AddText(String)

Adds a fixed text to the interpolated string.

Clone()
ToExpression()

Creates a compile-time IExpression from the current ExpressionBuilder.