Method ToString
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |
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? elementFormat)
Parameters
| Type | Name | Description |
|---|---|---|
| string | elementFormat |
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? elementFormat, IFormatProvider? formatProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| string | elementFormat | |
| 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. |