Class Currency
Assembly: Glitch9.dll
Syntax
[Serializable]
[JsonConverter(typeof(CurrencyJsonConverter))]
public class Currency : IComparable
Constructors
|
Edit this page
View Source
Currency()
Declaration
|
Edit this page
View Source
Currency(double, CurrencyCode, bool)
Declaration
public Currency(double priceInUsd, CurrencyCode currencyCode = CurrencyCode.USD, bool isEstimate = false)
Parameters
Properties
|
Edit this page
View Source
CurrencyCode
Declaration
public CurrencyCode CurrencyCode { get; set; }
Property Value
|
Edit this page
View Source
IsEstimate
Declaration
public bool IsEstimate { get; set; }
Property Value
|
Edit this page
View Source
PriceInUsd
Declaration
public double PriceInUsd { get; set; }
Property Value
|
Edit this page
View Source
Value
Declaration
public double Value { get; set; }
Property Value
Methods
|
Edit this page
View Source
CompareTo(object)
Declaration
public int CompareTo(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
|
Edit this page
View Source
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
|
Edit this page
View Source
Exchange(double, CurrencyCode, CurrencyCode)
Declaration
public static double Exchange(double amount, CurrencyCode fromCurrency, CurrencyCode toCurrency)
Parameters
Returns
|
Edit this page
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
|
Edit this page
View Source
GetSymbol(CurrencyCode)
Declaration
public static string GetSymbol(CurrencyCode code)
Parameters
Returns
|
Edit this page
View Source
ToString(CurrencyCode, string)
Declaration
public string ToString(CurrencyCode code, string arg = null)
Parameters
Returns
|
Edit this page
View Source
ToString(string)
Declaration
public string ToString(string arg = null)
Parameters
| Type |
Name |
Description |
| string |
arg |
|
Returns
Operators
|
Edit this page
View Source
operator +(Currency, Currency)
Declaration
public static Currency operator +(Currency a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator +(Currency, decimal)
Declaration
public static Currency operator +(Currency a, decimal b)
Parameters
Returns
|
Edit this page
View Source
operator +(Currency, double)
Declaration
public static Currency operator +(Currency a, double b)
Parameters
Returns
|
Edit this page
View Source
operator +(Currency, int)
Declaration
public static Currency operator +(Currency a, int b)
Parameters
Returns
|
Edit this page
View Source
operator +(Currency, float)
Declaration
public static Currency operator +(Currency a, float b)
Parameters
Returns
|
Edit this page
View Source
operator +(decimal, Currency)
Declaration
public static Currency operator +(decimal a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator +(double, Currency)
Declaration
public static Currency operator +(double a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator +(int, Currency)
Declaration
public static Currency operator +(int a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator +(float, Currency)
Declaration
public static Currency operator +(float a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator /(Currency, Currency)
Declaration
public static Currency operator /(Currency a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator /(Currency, decimal)
Declaration
public static Currency operator /(Currency a, decimal b)
Parameters
Returns
|
Edit this page
View Source
operator /(Currency, double)
Declaration
public static Currency operator /(Currency a, double b)
Parameters
Returns
|
Edit this page
View Source
operator /(Currency, int)
Declaration
public static Currency operator /(Currency a, int b)
Parameters
Returns
|
Edit this page
View Source
operator /(Currency, float)
Declaration
public static Currency operator /(Currency a, float b)
Parameters
Returns
|
Edit this page
View Source
operator /(decimal, Currency)
Declaration
public static Currency operator /(decimal a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator /(double, Currency)
Declaration
public static Currency operator /(double a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator /(int, Currency)
Declaration
public static Currency operator /(int a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator /(float, Currency)
Declaration
public static Currency operator /(float a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator ==(Currency, Currency)
Declaration
public static bool operator ==(Currency a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator ==(Currency, decimal)
Declaration
public static bool operator ==(Currency a, decimal b)
Parameters
Returns
|
Edit this page
View Source
operator ==(Currency, double)
Declaration
public static bool operator ==(Currency a, double b)
Parameters
Returns
|
Edit this page
View Source
operator ==(Currency, int)
Declaration
public static bool operator ==(Currency a, int b)
Parameters
Returns
|
Edit this page
View Source
operator ==(Currency, float)
Declaration
public static bool operator ==(Currency a, float b)
Parameters
Returns
|
Edit this page
View Source
operator ==(decimal, Currency)
Declaration
public static bool operator ==(decimal a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator ==(double, Currency)
Declaration
public static bool operator ==(double a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator ==(int, Currency)
Declaration
public static bool operator ==(int a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator ==(float, Currency)
Declaration
public static bool operator ==(float a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator >(Currency, Currency)
Declaration
public static bool operator >(Currency a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator >(Currency, decimal)
Declaration
public static bool operator >(Currency a, decimal b)
Parameters
Returns
|
Edit this page
View Source
operator >(Currency, double)
Declaration
public static bool operator >(Currency a, double b)
Parameters
Returns
|
Edit this page
View Source
operator >(Currency, int)
Declaration
public static bool operator >(Currency a, int b)
Parameters
Returns
|
Edit this page
View Source
operator >(Currency, float)
Declaration
public static bool operator >(Currency a, float b)
Parameters
Returns
|
Edit this page
View Source
operator >(decimal, Currency)
Declaration
public static bool operator >(decimal a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator >(double, Currency)
Declaration
public static bool operator >(double a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator >(int, Currency)
Declaration
public static bool operator >(int a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator >(float, Currency)
Declaration
public static bool operator >(float a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator >=(Currency, Currency)
Declaration
public static bool operator >=(Currency a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator >=(Currency, decimal)
Declaration
public static bool operator >=(Currency a, decimal b)
Parameters
Returns
|
Edit this page
View Source
operator >=(Currency, double)
Declaration
public static bool operator >=(Currency a, double b)
Parameters
Returns
|
Edit this page
View Source
operator >=(Currency, int)
Declaration
public static bool operator >=(Currency a, int b)
Parameters
Returns
|
Edit this page
View Source
operator >=(Currency, float)
Declaration
public static bool operator >=(Currency a, float b)
Parameters
Returns
|
Edit this page
View Source
operator >=(decimal, Currency)
Declaration
public static bool operator >=(decimal a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator >=(double, Currency)
Declaration
public static bool operator >=(double a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator >=(int, Currency)
Declaration
public static bool operator >=(int a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator >=(float, Currency)
Declaration
public static bool operator >=(float a, Currency b)
Parameters
Returns
|
Edit this page
View Source
implicit operator double(Currency)
Declaration
public static implicit operator double(Currency price)
Parameters
Returns
|
Edit this page
View Source
implicit operator (double value, bool isEstimate)(Currency)
Declaration
public static implicit operator (double value, bool isEstimate)(Currency price)
Parameters
Returns
|
Edit this page
View Source
implicit operator Currency(decimal)
Declaration
public static implicit operator Currency(decimal value)
Parameters
| Type |
Name |
Description |
| decimal |
value |
|
Returns
|
Edit this page
View Source
implicit operator Currency(double)
Declaration
public static implicit operator Currency(double value)
Parameters
| Type |
Name |
Description |
| double |
value |
|
Returns
|
Edit this page
View Source
implicit operator Currency(int)
Declaration
public static implicit operator Currency(int value)
Parameters
| Type |
Name |
Description |
| int |
value |
|
Returns
|
Edit this page
View Source
implicit operator Currency(float)
Declaration
public static implicit operator Currency(float value)
Parameters
| Type |
Name |
Description |
| float |
value |
|
Returns
|
Edit this page
View Source
operator !=(Currency, Currency)
Declaration
public static bool operator !=(Currency a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator !=(Currency, decimal)
Declaration
public static bool operator !=(Currency a, decimal b)
Parameters
Returns
|
Edit this page
View Source
operator !=(Currency, double)
Declaration
public static bool operator !=(Currency a, double b)
Parameters
Returns
|
Edit this page
View Source
operator !=(Currency, int)
Declaration
public static bool operator !=(Currency a, int b)
Parameters
Returns
|
Edit this page
View Source
operator !=(Currency, float)
Declaration
public static bool operator !=(Currency a, float b)
Parameters
Returns
|
Edit this page
View Source
operator !=(decimal, Currency)
Declaration
public static bool operator !=(decimal a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator !=(double, Currency)
Declaration
public static bool operator !=(double a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator !=(int, Currency)
Declaration
public static bool operator !=(int a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator !=(float, Currency)
Declaration
public static bool operator !=(float a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator <(Currency, Currency)
Declaration
public static bool operator <(Currency a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator <(Currency, decimal)
Declaration
public static bool operator <(Currency a, decimal b)
Parameters
Returns
|
Edit this page
View Source
operator <(Currency, double)
Declaration
public static bool operator <(Currency a, double b)
Parameters
Returns
|
Edit this page
View Source
operator <(Currency, int)
Declaration
public static bool operator <(Currency a, int b)
Parameters
Returns
|
Edit this page
View Source
operator <(Currency, float)
Declaration
public static bool operator <(Currency a, float b)
Parameters
Returns
|
Edit this page
View Source
operator <(decimal, Currency)
Declaration
public static bool operator <(decimal a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator <(double, Currency)
Declaration
public static bool operator <(double a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator <(int, Currency)
Declaration
public static bool operator <(int a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator <(float, Currency)
Declaration
public static bool operator <(float a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator <=(Currency, Currency)
Declaration
public static bool operator <=(Currency a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator <=(Currency, decimal)
Declaration
public static bool operator <=(Currency a, decimal b)
Parameters
Returns
|
Edit this page
View Source
operator <=(Currency, double)
Declaration
public static bool operator <=(Currency a, double b)
Parameters
Returns
|
Edit this page
View Source
operator <=(Currency, int)
Declaration
public static bool operator <=(Currency a, int b)
Parameters
Returns
|
Edit this page
View Source
operator <=(Currency, float)
Declaration
public static bool operator <=(Currency a, float b)
Parameters
Returns
|
Edit this page
View Source
operator <=(decimal, Currency)
Declaration
public static bool operator <=(decimal a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator <=(double, Currency)
Declaration
public static bool operator <=(double a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator <=(int, Currency)
Declaration
public static bool operator <=(int a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator <=(float, Currency)
Declaration
public static bool operator <=(float a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator %(Currency, Currency)
Declaration
public static Currency operator %(Currency a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator %(Currency, decimal)
Declaration
public static Currency operator %(Currency a, decimal b)
Parameters
Returns
|
Edit this page
View Source
operator %(Currency, double)
Declaration
public static Currency operator %(Currency a, double b)
Parameters
Returns
|
Edit this page
View Source
operator %(Currency, int)
Declaration
public static Currency operator %(Currency a, int b)
Parameters
Returns
|
Edit this page
View Source
operator %(Currency, float)
Declaration
public static Currency operator %(Currency a, float b)
Parameters
Returns
|
Edit this page
View Source
operator %(decimal, Currency)
Declaration
public static Currency operator %(decimal a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator %(double, Currency)
Declaration
public static Currency operator %(double a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator %(int, Currency)
Declaration
public static Currency operator %(int a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator %(float, Currency)
Declaration
public static Currency operator %(float a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator *(Currency, Currency)
Declaration
public static Currency operator *(Currency a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator *(Currency, decimal)
Declaration
public static Currency operator *(Currency a, decimal b)
Parameters
Returns
|
Edit this page
View Source
operator *(Currency, double)
Declaration
public static Currency operator *(Currency a, double b)
Parameters
Returns
|
Edit this page
View Source
operator *(Currency, int)
Declaration
public static Currency operator *(Currency a, int b)
Parameters
Returns
|
Edit this page
View Source
operator *(Currency, float)
Declaration
public static Currency operator *(Currency a, float b)
Parameters
Returns
|
Edit this page
View Source
operator *(decimal, Currency)
Declaration
public static Currency operator *(decimal a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator *(double, Currency)
Declaration
public static Currency operator *(double a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator *(int, Currency)
Declaration
public static Currency operator *(int a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator *(float, Currency)
Declaration
public static Currency operator *(float a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator -(Currency, Currency)
Declaration
public static Currency operator -(Currency a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator -(Currency, decimal)
Declaration
public static Currency operator -(Currency a, decimal b)
Parameters
Returns
|
Edit this page
View Source
operator -(Currency, double)
Declaration
public static Currency operator -(Currency a, double b)
Parameters
Returns
|
Edit this page
View Source
operator -(Currency, int)
Declaration
public static Currency operator -(Currency a, int b)
Parameters
Returns
|
Edit this page
View Source
operator -(Currency, float)
Declaration
public static Currency operator -(Currency a, float b)
Parameters
Returns
|
Edit this page
View Source
operator -(decimal, Currency)
Declaration
public static Currency operator -(decimal a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator -(double, Currency)
Declaration
public static Currency operator -(double a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator -(int, Currency)
Declaration
public static Currency operator -(int a, Currency b)
Parameters
Returns
|
Edit this page
View Source
operator -(float, Currency)
Declaration
public static Currency operator -(float a, Currency b)
Parameters
Returns
Implements
Extension Methods