Table of Contents

Struct Signatory

Namespace
Virtufin.Base
Assembly
Virtufin.Base.dll

Identifier for a party to a contract or transaction. Backed by a Guid.

public readonly record struct Signatory : ISignatory, IEquatable<ISignatory>, IEquatable<Signatory>
Implements
Inherited Members

Examples

var alice = Signatory.New();
var bob = Signatory.New();
Assert.NotEqual(alice, bob);

Constructors

Signatory(Guid)

Identifier for a party to a contract or transaction. Backed by a Guid.

public Signatory(Guid Id)

Parameters

Id Guid

Examples

var alice = Signatory.New();
var bob = Signatory.New();
Assert.NotEqual(alice, bob);

Properties

Id

public Guid Id { get; init; }

Property Value

Guid

Methods

Equals(ISignatory?)

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

public bool Equals(ISignatory? other)

Parameters

other ISignatory

An object to compare with this object.

Returns

bool

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

From(Guid)

Wrap an existing id.

public static Signatory From(Guid id)

Parameters

id Guid

Returns

Signatory

New()

Generate a fresh Signatory backed by a new Guid.

public static Signatory New()

Returns

Signatory

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.