MemoryExtensions.TryWriteInterpolatedStringHandler Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
- 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.
- 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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈