Class ExchangeRate
Inheritance
System.Object
ExchangeRate
Assembly: Eco.Gameplay.dll
Syntax
public class ExchangeRate : Object
Constructors
ExchangeRate()
Declaration
Fields
ExchangeTypeNames
Declaration
public static readonly string[] ExchangeTypeNames
Field Value
Type |
Description |
System.String[] |
|
Properties
Currency1
Declaration
public Currency Currency1 { get; set; }
Property Value
Currency2
Declaration
public Currency Currency2 { get; set; }
Property Value
Pair
Declaration
public CurrencyPair Pair { get; }
Property Value
Rates
Declaration
public double[] Rates { get; set; }
Property Value
Type |
Description |
System.Double[] |
|
Methods
Average(IEnumerable<ExchangeRate>)
Declaration
public static ExchangeRate Average(IEnumerable<ExchangeRate> list)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<ExchangeRate> |
list |
|
Returns
GetRate(Currency, ExchangeType)
Declaration
public double GetRate(Currency cur, ExchangeType exchangeType)
Parameters
Returns
Type |
Description |
System.Double |
|
OtherCurrency(Currency)
Declaration
public Currency OtherCurrency(Currency cur)
Parameters
Returns
Extension Methods