ToString Method
Overloads
ToString() |
Returns a string that represents the current object. |
|
ToString(Formatting) |
Returns a string that represents the current object. |
|
ToString(Formatting, JsonConverter[]) |
Returns a string that represents the current object. |
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
A string that represents the current object. |
Overrides
System.Object.ToString()
ToString(Formatting)
Returns a string that represents the current object.
Declaration
public virtual string ToString(Formatting formatting)
Parameters
Type | Name | Description |
---|---|---|
Newtonsoft.Json.Formatting | formatting |
Formatting options |
Returns
Type | Description |
---|---|
System.String |
Returns a string that represents the current object. |
ToString(Formatting, JsonConverter[])
Returns a string that represents the current object.
Declaration
public string ToString(Formatting formatting, JsonConverter[] converters)
Parameters
Type | Name | Description |
---|---|---|
Newtonsoft.Json.Formatting | formatting |
Formatting options |
Newtonsoft.Json.JsonConverter[] | converters |
Set of JsonConverters to use during serializations. |
Returns
Type | Description |
---|---|
System.String |
Returns a string that represents the current object. |
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!