Επεξεργασία

Κοινή χρήση μέσω


MemoryExtensions.TryWriteInterpolatedStringHandler Constructors

Definition

Overloads

MemoryExtensions.TryWriteInterpolatedStringHandler(Int32, Int32, Span<Char>, Boolean)

Creates a handler used to write an interpolated string into a span of characters.

MemoryExtensions.TryWriteInterpolatedStringHandler(Int32, Int32, Span<Char>, IFormatProvider, Boolean)

Creates a handler used to write an interpolated string into a span of characters.

MemoryExtensions.TryWriteInterpolatedStringHandler(Int32, Int32, Span<Char>, Boolean)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

Creates a handler used to write an interpolated string into a span of characters.

public:
 TryWriteInterpolatedStringHandler(int literalLength, int formattedCount, Span<char> destination, [Runtime::InteropServices::Out] bool % shouldAppend);
public TryWriteInterpolatedStringHandler (int literalLength, int formattedCount, Span<char> destination, out bool shouldAppend);
new MemoryExtensions.TryWriteInterpolatedStringHandler : int * int * Span<char> * bool -> MemoryExtensions.TryWriteInterpolatedStringHandler
Public Sub New (literalLength As Integer, formattedCount As Integer, destination As Span(Of Char), 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<Char>

The destination buffer.

shouldAppend
Boolean

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

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

MemoryExtensions.TryWriteInterpolatedStringHandler(Int32, Int32, Span<Char>, IFormatProvider, Boolean)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

Creates a handler used to write an interpolated string into a span of characters.

public:
 TryWriteInterpolatedStringHandler(int literalLength, int formattedCount, Span<char> destination, IFormatProvider ^ provider, [Runtime::InteropServices::Out] bool % shouldAppend);
public TryWriteInterpolatedStringHandler (int literalLength, int formattedCount, Span<char> destination, IFormatProvider? provider, out bool shouldAppend);
new MemoryExtensions.TryWriteInterpolatedStringHandler : int * int * Span<char> * IFormatProvider * bool -> MemoryExtensions.TryWriteInterpolatedStringHandler
Public Sub New (literalLength As Integer, formattedCount As Integer, destination As Span(Of Char), 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<Char>

The destination buffer.

provider
IFormatProvider

An object that supplies culture-specific formatting information.

shouldAppend
Boolean

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

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