Struct InterpolatedStringTemplateBuilder
Represents a builder of the lambda expression that can be compiled to the renderer of the interpolated string.
Inherited Members
Namespace: DotNext.Runtime.CompilerServices
Assembly: DotNext.Metaprogramming.dll
Syntax
public struct InterpolatedStringTemplateBuilder
Constructors
| Edit this page View SourceInterpolatedStringTemplateBuilder(int, int)
Represents a builder of the lambda expression that can be compiled to the renderer of the interpolated string.
Declaration
public InterpolatedStringTemplateBuilder(int literalLength, int formattedCount)
Parameters
| Type | Name | Description |
|---|---|---|
| int | literalLength | The total number of characters in known at compile-time. |
| int | formattedCount | The number of placeholders. |
Methods
| Edit this page View SourceBuild()
Builds lambda expression that can be compiled to the renderer of the interpolated string.
Declaration
public readonly LambdaExpression Build()
Returns
| Type | Description |
|---|---|
| LambdaExpression | The lambda expression that encapsulates the rendering logic. |
Clear()
Removes all placeholders and literals from this builder.
Declaration
public readonly void Clear()
ToString()
Gets original template.
Declaration
public override readonly string ToString()
Returns
| Type | Description |
|---|---|
| string | The original template. |