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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기