JsonElement.Mutable.TryFormat Method
Definition
Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Overloads
| Method | Description |
|---|---|
| TryFormat(Span<char>, int, ReadOnlySpan<char>, IFormatProvider?) | |
| TryFormat(Span<byte>, int, ReadOnlySpan<char>, IFormatProvider?) |
TryFormat(Span<char>, int, ReadOnlySpan<char>, IFormatProvider?)
Source: JsonElement.Mutable.cs
public bool TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider)
Parameters
| Name | Type | Description |
|---|---|---|
destination |
Span<char> |
|
charsWritten |
int |
|
format |
ReadOnlySpan<char> |
|
provider |
IFormatProvider? |
Returns
Implements
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
TryFormat(Span<byte>, int, ReadOnlySpan<char>, IFormatProvider?)
Source: JsonElement.Mutable.cs
public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, ReadOnlySpan<char> format, IFormatProvider? provider)
Parameters
| Name | Type | Description |
|---|---|---|
utf8Destination |
Span<byte> |
|
bytesWritten |
int |
|
format |
ReadOnlySpan<char> |
|
provider |
IFormatProvider? |
Returns
Implements
IUtf8SpanFormattable.TryFormat
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests.
Open an issue