Money MembersInner Drive Extensible Architecture
The Money type exposes the following members.
Constructors

  NameDescription
Public methodMoney(Decimal)
Creates a new instance of Money denominated in U.S. dollars.
Public methodMoney(Decimal, ICurrency)
Creates a new instance of Money denominated in a particular ICurrency.
Back to Top
Methods

  NameDescription
Public methodStatic memberAdd
Adds two instances of Money together.
Public methodAllocate(IList Decimal )
Allocates the money value proporitionately according to the list of values supplied using the Money object's current rounding strategy.
Public methodAllocate(Int32)
There are two overloads. Allocates the money value into an equal number of shares using the instance rounding strategy.
Public methodClone
Creates a new object that is a copy of the current instance.
Public methodCompareTo
Compares the current instance with another Money.
Public methodConvertTo
Converts this instance from its currency into another currency.
Public methodStatic memberDivide
Divides an instances of Money by a decimal value.
Public methodEquals(Object)
Determines whether the specified OnlineObject is equal to this instance of Money.
(Overrides OnlineValueType Equals(Object).)
Public methodEquals(Money)
Indicates whether the current object is equal to another object of the same type.
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodGetHashCode
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
(Overrides OnlineValueType GetHashCode .)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodStatic memberMod
The modulus operator computes the remainder after dividing its first (Money) operand by its second (OnlineDecimal).
Public methodStatic memberMultiply
Multiplies an instances of Money by a decimal value.
Public methodStatic memberNegate
Negates the value of the specified Money operand.
Public methodStatic memberParse(String)
Converts the OnlineString representation of a number to its Money equivalent in U.S. dollars.
Public methodStatic memberParse(String, ICurrency)
Converts the OnlineString representation of a number to its Money equivalent using a specific currency unit.
Public methodRound 
There are four overloads. Rounds the instance internal value to the smallest fractional unit of the instance's currency.
Public methodRound(Int32)
Rounds the instance internal value to the smallest fractional unit of the instance's currency to a specified number of decimal places.
Public methodRound(IRoundingStrategy)
Rounds the instance internal value to the smallest fractional unit of the instance's currency using a specific rounding strategy.
Public methodRound(IRoundingStrategy, Int32)
Rounds the instance internal value to the smallest fractional unit of the instance's currency, to a specified number of decimal places, using a specific rounding strategy.
Public methodStatic memberSubtract
Subtracts one instances of Money from another.
Public methodToExponentString(Int32)
Displays this Money value as an exponent
Public methodToExponentString(Int32, String)
Displays this Money value as an exponent
Public methodToExponentString(IFormatProvider, Int32, String)
Displays this Money value as an exponent
Public methodToString 
There are four overloads. Converts the numeric value of this instance to its equivalent OnlineString representation.
(Overrides OnlineValueType ToString .)
Public methodToString(IFormatProvider)
Converts the numeric value of this instance to its equivalent OnlineString representation.
Public methodToString(String)
Converts the numeric value of this instance to its equivalent OnlineString representation.
Public methodToString(String, IFormatProvider)
Converts the numeric value of this instance to its equivalent OnlineString representation.
Public methodStatic memberTryParse(String, Money )
Converts the OnlineString representation of a number to its Money equivalent. A return value indicates whether the conversion succeeded or failed.
Public methodStatic memberTryParse(String, ICurrency, Money )
Converts the OnlineString representation of a number to its Money equivalent. A return value indicates whether the conversion succeeded or failed.
Public methodStatic memberTryParse(String, ICurrency, NumberStyles, IFormatProvider, Money )
Converts the OnlineString representation of a number to its Money equivalent using the specified style and culture-specific format. A return value indicates whether the conversion succeeded or failed.
Back to Top
Operators

  NameDescription
Public operatorStatic memberAddition
Adds two instances of Money together.
Public operatorStatic memberDivision
Divides an instances of Money by a decimal value.
Public operatorStatic memberEquality
Compares two instances of Money for equality.
Public operatorStatic memberGreaterThan
Compares two instances of Money for different values.
Public operatorStatic memberGreaterThanOrEqual
Compares two instances of Money for different values.
Public operatorStatic member (Decimal to Money)
Creates a new Money object from a OnlineDecimal value.
Public operatorStatic member (Money to Decimal)
Creates a new OnlineDecimal value from a given Money object.
Public operatorStatic memberInequality
Compares two instances of Money for inequality.
Public operatorStatic memberLessThan
Compares two instances of Money for different values.
Public operatorStatic memberLessThanOrEqual
Compares two instances of Money for different values.
Public operatorStatic memberModulus
The modulus operator computes the remainder after dividing its first (Money) operand by its second (OnlineDecimal).
Public operatorStatic memberMultiply
Multiplies an instances of Money by a decimal value.
Public operatorStatic memberSubtraction
Subtracts one instances of Money from another.
Public operatorStatic memberUnaryNegation
Negates the value of the specified Money operand.
Back to Top
Fields

  NameDescription
Public fieldStatic memberMaxValue
Returns the largest possible value for Money.
Public fieldStatic memberMinValue
Returns the smallest possible value for Money.
Public fieldStatic memberZero
Gets a Money object with a value equal to zero, denominated in the default currency.
Back to Top
Properties

  NameDescription
Public propertyCurrency
Gets the currency used by this instance.
Public propertyRoundingStrategy
Gets or sets the currently-used rounding strategy.
Public propertyValue
Gets the value of this instance.
Back to Top
Explicit Interface Implementations

  NameDescription
Explicit interface implemetationPrivate methodIComparable CompareTo
Compares the current instance with another object of the same type.
Back to Top
See Also