Méthode | Description | |
---|---|---|
Balance ( ) : System |
Constructor.
|
|
Balance ( decimal value, BalanceType type ) : System |
Constructor.
|
|
Credit ( decimal value ) : |
Credits this balance by a given amount, resulting in a new balance.
|
|
Debit ( decimal value ) : |
Debits this balance by a given amount, resulting in a new balance.
|
|
Equals ( object obj ) : bool |
Checks if this object and another object are equal.
|
|
GetHashCode ( ) : int |
Gets a hash code for this balance.
|
|
Parse ( string balanceText ) : |
Parses a Balance given a string and the type of balance expected.
|
|
Parse ( string balanceText, BalanceType expectedBalanceType ) : |
Parses a Balance given a string and the type of balance expected.
|
|
ToString ( ) : string |
Gets a string representation of the current balance.
|
|
ToString ( string format, IFormatProvider formatProvider ) : string |
Gets a string representation of the current balance.
|
|
TryParse ( string balanceText, |
Attempts to parse a Balance given a string.
|
|
TryParse ( string balanceText, BalanceType expectedBalanceType, |
Attempts to parse a Balance given a string and the type of balance expected.
|
|
operator ( ) : |
Adds two balances.
|
|
operator ( ) : bool |
Not equals operator.
|
public Balance ( decimal value, BalanceType type ) : System | ||
value | decimal | The value of the balance. |
type | BalanceType | The type of balance. |
Résultat | System |
public Credit ( decimal value ) : |
||
value | decimal | The value to credit this balance. |
Résultat |
public Debit ( decimal value ) : |
||
value | decimal | The value to debit this balance. |
Résultat |
public Equals ( object obj ) : bool | ||
obj | object | The other object to check. |
Résultat | bool |
public static Parse ( string balanceText ) : |
||
balanceText | string | The text to attempt to parse. |
Résultat |
public static Parse ( string balanceText, BalanceType expectedBalanceType ) : |
||
balanceText | string | The text to attempt to parse. |
expectedBalanceType | BalanceType | The type of balance expected. If null, 'CR' or 'DR' must be specified in the balance text. |
Résultat |
public ToString ( string format, IFormatProvider formatProvider ) : string | ||
format | string | A format specification. |
formatProvider | IFormatProvider | An IFormatProvider that supplies culture specific formatting information. |
Résultat | string |
public static TryParse ( string balanceText, |
||
balanceText | string | The text to attempt to parse. |
resultBalance | If parsing is sucessful, this will contain the parsed balance. | |
Résultat | bool |
public static TryParse ( string balanceText, BalanceType expectedBalanceType, |
||
balanceText | string | The text to attempt to parse. |
expectedBalanceType | BalanceType | The type of balance expected. If null, 'CR' or 'DR' must be specified in the balance text. |
resultBalance | If parsing is sucessful, this will contain the parsed balance. | |
Résultat | bool |