Table of Contents

Class AssetIdentifier

Namespace
Virtufin.Base
Assembly
Virtufin.Base.dll

Identifier for an asset. Two flavours:

public abstract record AssetIdentifier : IAssetIdentifier, IEquatable<IAssetIdentifier>, IEquatable<AssetIdentifier>
Inheritance
AssetIdentifier
Implements
Derived
Inherited Members

Properties

Value

The string payload of the identifier.

public abstract string Value { get; }

Property Value

string

Methods

Equals(IAssetIdentifier?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(IAssetIdentifier? other)

Parameters

other IAssetIdentifier

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

ForCurrency(CurrencySymbol)

Construct a currency-backed asset identifier.

public static AssetIdentifier ForCurrency(Currency.CurrencySymbol currency)

Parameters

currency Currency.CurrencySymbol

Returns

AssetIdentifier

New(string)

Construct an opaque string asset identifier.

public static AssetIdentifier New(string value)

Parameters

value string

Returns

AssetIdentifier