Struct Currency
Assembly: tt-net-api.dll
Syntax
public struct Currency : IEquatable<Currency>
Constructors
Currency(string)
Declaration
public Currency(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Currency(CurrencyCode)
Declaration
public Currency(CurrencyCode currency)
Parameters
Fields
Empty
Declaration
public static Currency Empty
Field Value
Properties
Code
Declaration
public string Code { get; }
Property Value
PrimaryCurrency
Declaration
public static Currency PrimaryCurrency { get; }
Property Value
Value
Declaration
public CurrencyCode Value { get; }
Property Value
Methods
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
Equals(Currency)
Declaration
public bool Equals(Currency other)
Parameters
Returns
GetConversionRate(string)
Declaration
public decimal GetConversionRate(string targetCurrencyCode)
Parameters
Type |
Name |
Description |
string |
targetCurrencyCode |
|
Returns
GetConversionRate(string, string)
Declaration
public static decimal GetConversionRate(string sourceCurrencyCode, string targetCurrencyCode)
Parameters
Type |
Name |
Description |
string |
sourceCurrencyCode |
|
string |
targetCurrencyCode |
|
Returns
GetConversionRate(Currency)
Declaration
public decimal GetConversionRate(Currency targetCurrency)
Parameters
Type |
Name |
Description |
Currency |
targetCurrency |
|
Returns
GetConversionRate(Currency, Currency)
Declaration
public static decimal GetConversionRate(Currency sourceCurrency, Currency targetCurrency)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements