MoneyAllocate(Int32) Method

There are two overloads. Allocates the money value into an equal number of shares using the instance rounding strategy.

Definition

Namespace: InnerDrive.Financial
Assembly: InnerDrive.Financial (in InnerDrive.Financial.dll) Version: 5.2.9017.0
C#
public Money[] Allocate(
	int shares
)

Parameters

shares  Int32
The number of shares to divide the money value into.

Return Value

Money
An ArrayList of Money objects

Example

To allocate money three ways equally:
C#
Money     money   = new Money(1000);
Money[]   results = money.Allocate(3);
results now contains three Money objects with values of $333.34, $333.33, and $333.33 respectively.

See Also