Show / Hide Table of Contents

Struct InterpolatedStringTemplateBuilder

Represents a builder of the lambda expression that can be compiled to the renderer of the interpolated string.

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: DotNext.Runtime.CompilerServices
Assembly: DotNext.Metaprogramming.dll
Syntax
public struct InterpolatedStringTemplateBuilder

Constructors

| Edit this page View Source

InterpolatedStringTemplateBuilder(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 Source

Build()

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.

| Edit this page View Source

Clear()

Removes all placeholders and literals from this builder.

Declaration
public readonly void Clear()
| Edit this page View Source

ToString()

Gets original template.

Declaration
public override readonly string ToString()
Returns
Type Description
string

The original template.

Overrides
ValueType.ToString()

Extension Methods

BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, ReadOnlySpan<T>)
Collection.ToAsyncEnumerator<TEnumerator, T>(TEnumerator, CancellationToken)
Collection.ToClassicEnumerator<TEnumerator, T>(TEnumerator)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
ExpressionBuilder.Const<T>(T)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾