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
originalCryptoSymbol
Properties
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Name
Gets the full name of the cryptocurrency.
public string? Name { get; init; }
Property Value
TradingSymbol
Gets the trading symbol of the cryptocurrency.
public string? TradingSymbol { get; init; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(CryptoSymbol?)
public virtual bool Equals(CryptoSymbol? other)
Parameters
otherCryptoSymbol
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(CryptoSymbol?, CryptoSymbol?)
public static bool operator ==(CryptoSymbol? left, CryptoSymbol? right)
Parameters
leftCryptoSymbolrightCryptoSymbol
Returns
operator !=(CryptoSymbol?, CryptoSymbol?)
public static bool operator !=(CryptoSymbol? left, CryptoSymbol? right)
Parameters
leftCryptoSymbolrightCryptoSymbol