Method ToString
ToString()
Formats the value of the current instance using the default format.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | The value of the current instance in the default format. |
Overrides
ToString(IFormatProvider?)
Formats the value of the current instance using the specified format.
Declaration
public string ToString(IFormatProvider? formatProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| IFormatProvider | formatProvider | The provider to use to format the value. -or- A null reference ( |
Returns
| Type | Description |
|---|---|
| string | The value of the current instance in the specified format. |
ToString(string?)
Formats the value of the current instance using the specified format.
Declaration
public string ToString(string? format)
Parameters
| Type | Name | Description |
|---|---|---|
| string | format | The format to use. -or- A null reference ( |
Returns
| Type | Description |
|---|---|
| string | The value of the current instance in the specified format. |
ToString(string?, IFormatProvider?)
Formats the value of the current instance using the specified format.
Declaration
public string ToString(string? format, IFormatProvider? formatProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| string | format | The format to use. -or- A null reference ( |
| IFormatProvider | formatProvider | The provider to use to format the value. -or- A null reference ( |
Returns
| Type | Description |
|---|---|
| string | The value of the current instance in the specified format. |