Method ToString
ToString()
Returns a string representation of the monetary values this bag contains.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |
Overrides
ToString(string?, IFormatProvider?)
Returns a string representation of the monetary values this bag contains.
Declaration
public string ToString(string? format, IFormatProvider? provider = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | format | The format to use for each monetary value. See ToString(string?, IFormatProvider?) for valid monetary formats.
Prepend the desired monetary format with the |
| IFormatProvider | provider | The format provider that will be used to obtain number format information. This should be a CultureInfo instance for formats that depend on the culture, otherwise the current culture is used. |
Returns
| Type | Description |
|---|---|
| string |