Uređivanje

Dijeli putem


DefaultInterpolatedStringHandler Constructors

Definition

Overloads

DefaultInterpolatedStringHandler(Int32, Int32)

Creates a handler used to translate an interpolated string into a String.

DefaultInterpolatedStringHandler(Int32, Int32, IFormatProvider)

Creates a handler used to translate an interpolated string into a String.

DefaultInterpolatedStringHandler(Int32, Int32, IFormatProvider, Span<Char>)

Creates a handler used to translate an interpolated string into a String.

DefaultInterpolatedStringHandler(Int32, Int32)

Source:
DefaultInterpolatedStringHandler.cs
Source:
DefaultInterpolatedStringHandler.cs
Source:
DefaultInterpolatedStringHandler.cs

Creates a handler used to translate an interpolated string into a String.

public:
 DefaultInterpolatedStringHandler(int literalLength, int formattedCount);
public DefaultInterpolatedStringHandler (int literalLength, int formattedCount);
new System.Runtime.CompilerServices.DefaultInterpolatedStringHandler : int * int -> System.Runtime.CompilerServices.DefaultInterpolatedStringHandler
Public Sub New (literalLength As Integer, formattedCount As Integer)

Parameters

literalLength
Int32

The number of constant characters outside of interpolation expressions in the interpolated string.

formattedCount
Int32

The number of interpolation expressions in the interpolated string.

Remarks

This is intended to be called only by compiler-generated code. Arguments are not validated as they'd otherwise be for members intended to be used directly.

Applies to

DefaultInterpolatedStringHandler(Int32, Int32, IFormatProvider)

Source:
DefaultInterpolatedStringHandler.cs
Source:
DefaultInterpolatedStringHandler.cs
Source:
DefaultInterpolatedStringHandler.cs

Creates a handler used to translate an interpolated string into a String.

public:
 DefaultInterpolatedStringHandler(int literalLength, int formattedCount, IFormatProvider ^ provider);
public DefaultInterpolatedStringHandler (int literalLength, int formattedCount, IFormatProvider? provider);
new System.Runtime.CompilerServices.DefaultInterpolatedStringHandler : int * int * IFormatProvider -> System.Runtime.CompilerServices.DefaultInterpolatedStringHandler
Public Sub New (literalLength As Integer, formattedCount As Integer, provider As IFormatProvider)

Parameters

literalLength
Int32

The number of constant characters outside of interpolation expressions in the interpolated string.

formattedCount
Int32

The number of interpolation expressions in the interpolated string.

provider
IFormatProvider

An object that supplies culture-specific formatting information.

Remarks

This is intended to be called only by compiler-generated code. Arguments are not validated as they'd otherwise be for members intended to be used directly.

Applies to

DefaultInterpolatedStringHandler(Int32, Int32, IFormatProvider, Span<Char>)

Source:
DefaultInterpolatedStringHandler.cs
Source:
DefaultInterpolatedStringHandler.cs
Source:
DefaultInterpolatedStringHandler.cs

Creates a handler used to translate an interpolated string into a String.

public:
 DefaultInterpolatedStringHandler(int literalLength, int formattedCount, IFormatProvider ^ provider, Span<char> initialBuffer);
public DefaultInterpolatedStringHandler (int literalLength, int formattedCount, IFormatProvider? provider, Span<char> initialBuffer);
new System.Runtime.CompilerServices.DefaultInterpolatedStringHandler : int * int * IFormatProvider * Span<char> -> System.Runtime.CompilerServices.DefaultInterpolatedStringHandler
Public Sub New (literalLength As Integer, formattedCount As Integer, provider As IFormatProvider, initialBuffer As Span(Of Char))

Parameters

literalLength
Int32

The number of constant characters outside of interpolation expressions in the interpolated string.

formattedCount
Int32

The number of interpolation expressions in the interpolated string.

provider
IFormatProvider

An object that supplies culture-specific formatting information.

initialBuffer
Span<Char>

A buffer temporarily transferred to the handler for use as part of its formatting. Contents may be overwritten.

Remarks

This is intended to be called only by compiler-generated code. Arguments are not validated as they'd otherwise be for members intended to be used directly.

Applies to