Struct Signatory
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
IdGuid
Examples
var alice = Signatory.New();
var bob = Signatory.New();
Assert.NotEqual(alice, bob);
Properties
Id
public Guid Id { get; init; }
Property Value
Methods
Equals(ISignatory?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ISignatory? other)
Parameters
otherISignatoryAn object to compare with this object.
Returns
From(Guid)
Wrap an existing id.
public static Signatory From(Guid id)
Parameters
idGuid
Returns
New()
Generate a fresh Signatory backed by a new Guid.
public static Signatory New()
Returns
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.