Struct Currency
Inherited Members
Object.Equals(Object, Object)
Object.GetType()
Object.ReferenceEquals(Object, Object)
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
System.ValueType.Equals(System.Object)
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
System.ValueType.GetHashCode()
ToString()
Declaration
public override string ToString()
Returns
Overrides
System.ValueType.ToString()
Implements
System.IEquatable<T>