Method Add
Add(MonetaryValue)
Adds the specified value to this bag.
Declaration
public void Add(MonetaryValue value)
Parameters
| Type | Name | Description |
|---|---|---|
| MonetaryValue | value |
Implements
Remarks
Default values that are not associated with any currency are ignored.
Add(decimal, ReadOnlySpan<char>)
Adds the specified currency and amount to this bag.
Declaration
public void Add(decimal amount, ReadOnlySpan<char> currencyCode)
Parameters
| Type | Name | Description |
|---|---|---|
| decimal | amount | |
| ReadOnlySpan<char> | currencyCode |
Add(decimal, Currency)
Adds the specified currency and amount to this bag.
Declaration
public void Add(decimal amount, Currency currency)
Parameters
| Type | Name | Description |
|---|---|---|
| decimal | amount | |
| Currency | currency |
Implements
Add(decimal, string)
Adds the specified currency and amount to this bag.
Declaration
public void Add(decimal amount, string currencyCode)
Parameters
| Type | Name | Description |
|---|---|---|
| decimal | amount | |
| string | currencyCode |