Table of Contents

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

Code string

Currency code

IsBase bool

True - Currency is base for security

Precision int

Number 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

True - Currency is base for security

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

Code string
IsBase bool
Precision int

Equals(CurrencyInfo)

public readonly bool Equals(CurrencyInfo other)

Parameters

other CurrencyInfo

Returns

bool

Equals(object)

public override readonly bool Equals(object obj)

Parameters

obj object

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

left CurrencyInfo
right CurrencyInfo

Returns

bool

operator !=(CurrencyInfo, CurrencyInfo)

public static bool operator !=(CurrencyInfo left, CurrencyInfo right)

Parameters

left CurrencyInfo
right CurrencyInfo

Returns

bool