Struct CurrencyInfo
- Namespace
- ATAS.DataFeedsCore
- Assembly
- ATAS.DataFeedsCore.dll
Represents currency information for a decimal value
public struct CurrencyInfo
- Extension Methods
Constructors
CurrencyInfo(string, bool, int)
Represents currency information for a decimal value
public CurrencyInfo(string Code, bool IsBase, int Precision)
Parameters
CodestringCurrency code
IsBaseboolTrue - Currency is base for securityPrecisionintNumber of numbers after the decimal point
Properties
Code
Currency code
public string Code { readonly get; set; }
Property Value
- string
DisplayFormat
Get display format for decimal value
public readonly string DisplayFormat { get; }
Property Value
- string
EditFormat
Get edit format for decimal value
public readonly string EditFormat { get; }
Property Value
- string
IsBase
public bool IsBase { readonly get; set; }
Property Value
- bool
Precision
Number of numbers after the decimal point
public int Precision { readonly get; set; }
Property Value
- int
Methods
Deconstruct(out string, out bool, out int)
public readonly void Deconstruct(out string Code, out bool IsBase, out int Precision)
Parameters
CodestringIsBaseboolPrecisionint
Equals(CurrencyInfo)
public readonly bool Equals(CurrencyInfo other)
Parameters
otherCurrencyInfo
Returns
- bool
Equals(object)
public override readonly bool Equals(object obj)
Parameters
objobject
Returns
- bool
GetHashCode()
public override readonly int GetHashCode()
Returns
- int
ToString()
public override readonly string ToString()
Returns
- string
Operators
operator ==(CurrencyInfo, CurrencyInfo)
public static bool operator ==(CurrencyInfo left, CurrencyInfo right)
Parameters
leftCurrencyInforightCurrencyInfo
Returns
- bool
operator !=(CurrencyInfo, CurrencyInfo)
public static bool operator !=(CurrencyInfo left, CurrencyInfo right)
Parameters
leftCurrencyInforightCurrencyInfo
Returns
- bool