Method AddRange
AddRange(IEnumerable<MonetaryValue>)
Adds the specified values to this bag.
Declaration
void AddRange(IEnumerable<MonetaryValue> values)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<MonetaryValue> | values |
Remarks
Default values that are not associated with any currency are ignored. If any of the specified currencies are not present in the bag's currency registry, an exception will be thrown. However, all valid currencies will be added prior to the exception being thrown.