Currency

Ecng.Common

Currency.

Inherits: Equatable<Currency>

Properties

Type
public CurrencyTypes Type { get; set; }
value = currency.Type
currency.Type = value

Currency type. The default is USD.

Value
public decimal Value { get; set; }
value = currency.Value
currency.Value = value

Absolute value in CurrencyTypes.

Methods

Clone
public override Currency Clone()
result = currency.Clone()

Create a copy of Currency.

Returns: Copy.

GetHashCode
public override int GetHashCode()
result = currency.GetHashCode()

Get the hash code of the object Currency.

Returns: A hash code.

OnEquals
protected override bool OnEquals(Currency other)
result = currency.OnEquals(other)

Compare Currency on the equivalence.

other
Another value with which to compare.

Returns: , if the specified object is equal to the current object, otherwise, .

op_Addition
public static Currency op_Addition(Currency c1, Currency c2)
result = Currency.op_Addition(c1, c2)

Add the two objects Currency.

c1
First object Currency.
c2
Second object Currency.

Returns: The result of addition.

op_Division
public static Currency op_Division(Currency c1, Currency c2)
result = Currency.op_Division(c1, c2)

Divide one value to another.

c1
First object Currency.
c2
Second object Currency.

Returns: The result of the division.

op_Multiply
public static Currency op_Multiply(Currency c1, Currency c2)
result = Currency.op_Multiply(c1, c2)

Multiply one value to another.

c1
First object Currency.
c2
Second object Currency.

Returns: The result of the multiplication.

op_Subtraction
public static Currency op_Subtraction(Currency c1, Currency c2)
result = Currency.op_Subtraction(c1, c2)

Subtract one value from another value.

c1
First object Currency.
c2
Second object Currency.

Returns: The result of the subtraction.

ToString
public override string ToString()
result = currency.ToString()

Returns a string representation of the tuple, with values separated by commas.

Returns: A string representing the tuple's values.