Table of Contents

Class CryptoSymbol

Namespace
Tudormobile.FinancialData.Entities
Assembly
Tudormobile.FinancialData.dll

Represents a cryptocurrency symbol and its full name.

See: https://financialdata.net/documentation#crypto_symbols

public record CryptoSymbol : IEquatable<CryptoSymbol>
Inheritance
CryptoSymbol
Implements
Inherited Members

Constructors

CryptoSymbol()

public CryptoSymbol()

CryptoSymbol(CryptoSymbol)

protected CryptoSymbol(CryptoSymbol original)

Parameters

original CryptoSymbol

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Name

Gets the full name of the cryptocurrency.

public string? Name { get; init; }

Property Value

string

TradingSymbol

Gets the trading symbol of the cryptocurrency.

public string? TradingSymbol { get; init; }

Property Value

string

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(CryptoSymbol?)

public virtual bool Equals(CryptoSymbol? other)

Parameters

other CryptoSymbol

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(CryptoSymbol?, CryptoSymbol?)

public static bool operator ==(CryptoSymbol? left, CryptoSymbol? right)

Parameters

left CryptoSymbol
right CryptoSymbol

Returns

bool

operator !=(CryptoSymbol?, CryptoSymbol?)

public static bool operator !=(CryptoSymbol? left, CryptoSymbol? right)

Parameters

left CryptoSymbol
right CryptoSymbol

Returns

bool