Currency
Ecng.Common
Currency.
Наследует: Equatable<Currency>
Свойства
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.
Методы
Clone
public override Currency Clone()
result = currency.Clone()
Create a copy of Currency.
Возвращает: Copy.
GetHashCode
public override int GetHashCode()
result = currency.GetHashCode()
Get the hash code of the object Currency.
Возвращает: 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.
Возвращает: , 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.
Возвращает: 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.
Возвращает: 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.
Возвращает: 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.
Возвращает: 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.
Возвращает: A string representing the tuple's values.