Table of Contents

Class ContractIdentifier

Namespace
Virtufin.Base
Assembly
Virtufin.Base.dll

Identifier for a contract. Two flavours are supported:

public abstract record ContractIdentifier : IContractIdentifier, IEquatable<IContractIdentifier>, IEquatable<ContractIdentifier>
Inheritance
ContractIdentifier
Implements
Derived
Inherited Members

Properties

Value

The string payload of the identifier.

public abstract string Value { get; }

Property Value

string

Methods

Equals(IContractIdentifier?)

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

public bool Equals(IContractIdentifier? other)

Parameters

other IContractIdentifier

An object to compare with this object.

Returns

bool

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

FromUti(string)

Construct a UTI.

public static ContractIdentifier FromUti(string value)

Parameters

value string

Returns

ContractIdentifier

New(string)

Construct an opaque-string identifier.

public static ContractIdentifier New(string value)

Parameters

value string

Returns

ContractIdentifier

NewWithUuid()

Construct an opaque identifier backed by a fresh Guid.

public static ContractIdentifier NewWithUuid()

Returns

ContractIdentifier