IJsonDocument.ToString Method
Definition
Namespace: Corvus.Text.Json.Internal
Assembly: Corvus.Text.Json.dll
Overloads
| Method | Description |
|---|---|
| ToString(int) | Converts the element at the specified index to a string. |
| ToString(int, string, IFormatProvider) | Gets the display string representation of the element at the specified index according to the specified format and format provider. |
ToString(int)
Source: IJsonDocument.cs
Converts the element at the specified index to a string.
public abstract string ToString(int index)
Parameters
| Name | Type | Description |
|---|---|---|
index |
int |
The index of the element. |
Returns
The string representation of the element.
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
ToString(int, string, IFormatProvider)
Source: IJsonDocument.cs
Gets the display string representation of the element at the specified index according to the specified format and format provider.
public abstract string ToString(int index, string format, IFormatProvider formatProvider)
Parameters
| Name | Type | Description |
|---|---|---|
index |
int |
The index of the element. |
format |
string |
The format string. |
formatProvider |
IFormatProvider |
The format provider. |
Returns
The display string representation of the element.
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