Compile-time object that allows to build a run-time interpolated string.
Namespace: Metalama.Framework.Code.SyntaxBuilders
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public sealed class InterpolatedStringBuilder : 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(IExpression?, int?, string?) | Adds an expression to the interpolated string. |
AddExpression(dynamic?, int?, 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. |