Show / Hide Table of Contents

Class ExchangeRate

Inheritance
System.Object
ExchangeRate
Namespace: Eco.Gameplay.Economy.Trackers
Assembly: Eco.Gameplay.dll
Syntax
public class ExchangeRate : Object

Constructors

ExchangeRate()

Declaration
public ExchangeRate()

Fields

ExchangeTypeNames

Declaration
public static readonly string[] ExchangeTypeNames
Field Value
Type Description
System.String[]

Properties

Currency1

Declaration
public Currency Currency1 { get; set; }
Property Value
Type Description
Currency

Currency2

Declaration
public Currency Currency2 { get; set; }
Property Value
Type Description
Currency

Pair

Declaration
public CurrencyPair Pair { get; }
Property Value
Type Description
CurrencyPair

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
Type Description
ExchangeRate

GetRate(Currency, ExchangeType)

Declaration
public double GetRate(Currency cur, ExchangeType exchangeType)
Parameters
Type Name Description
Currency cur
ExchangeType exchangeType
Returns
Type Description
System.Double

OtherCurrency(Currency)

Declaration
public Currency OtherCurrency(Currency cur)
Parameters
Type Name Description
Currency cur
Returns
Type Description
Currency

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾