Editare

Partajați prin


Utf8.TryWriteInterpolatedStringHandler Constructors

Definition

Overloads

Utf8.TryWriteInterpolatedStringHandler(Int32, Int32, Span<Byte>, Boolean)

Creates a handler used to write an interpolated string into a UTF-8 Span<T>.

Utf8.TryWriteInterpolatedStringHandler(Int32, Int32, Span<Byte>, IFormatProvider, Boolean)

Creates a handler used to write an interpolated string into a UTF-8 Span<T>.

Utf8.TryWriteInterpolatedStringHandler(Int32, Int32, Span<Byte>, Boolean)

Source:
Utf8.cs
Source:
Utf8.cs

Creates a handler used to write an interpolated string into a UTF-8 Span<T>.

public:
 TryWriteInterpolatedStringHandler(int literalLength, int formattedCount, Span<System::Byte> destination, [Runtime::InteropServices::Out] bool % shouldAppend);
public TryWriteInterpolatedStringHandler (int literalLength, int formattedCount, Span<byte> destination, out bool shouldAppend);
new System.Text.Unicode.Utf8.TryWriteInterpolatedStringHandler : int * int * Span<byte> * bool -> System.Text.Unicode.Utf8.TryWriteInterpolatedStringHandler
Public Sub New (literalLength As Integer, formattedCount As Integer, destination As Span(Of Byte), ByRef shouldAppend As Boolean)

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.

destination
Span<Byte>

The destination buffer.

shouldAppend
Boolean

When this method returns, contains true if the destination might be long enough to support the formatting, or false if it isn't.

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

Utf8.TryWriteInterpolatedStringHandler(Int32, Int32, Span<Byte>, IFormatProvider, Boolean)

Source:
Utf8.cs
Source:
Utf8.cs

Creates a handler used to write an interpolated string into a UTF-8 Span<T>.

public:
 TryWriteInterpolatedStringHandler(int literalLength, int formattedCount, Span<System::Byte> destination, IFormatProvider ^ provider, [Runtime::InteropServices::Out] bool % shouldAppend);
public TryWriteInterpolatedStringHandler (int literalLength, int formattedCount, Span<byte> destination, IFormatProvider? provider, out bool shouldAppend);
new System.Text.Unicode.Utf8.TryWriteInterpolatedStringHandler : int * int * Span<byte> * IFormatProvider * bool -> System.Text.Unicode.Utf8.TryWriteInterpolatedStringHandler
Public Sub New (literalLength As Integer, formattedCount As Integer, destination As Span(Of Byte), provider As IFormatProvider, ByRef shouldAppend As Boolean)

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.

destination
Span<Byte>

The destination buffer.

provider
IFormatProvider

An object that supplies culture-specific formatting information.

shouldAppend
Boolean

When this method returns, contains true if the destination might be long enough to support the formatting, or false if it isn't.

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