Method ToString
ToString()
Returns the string <nothing> if IsEmpty is true, otherwise returns the result of the ToString method of the inner Value.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
System.ValueType.ToString()
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 |
|---|---|---|
| System.String | format | The format string to use. |
| IFormatProvider | formatProvider | A format provider instance to use. |
Returns
| Type | Description |
|---|---|
| System.String | A string containing the formatted value. |
Remarks
If the instance is empty or the inner value does not support