Class ContractIdentifier
Identifier for a contract. Two flavours are supported:
- ContractIdentifier.SimpleContractIdentifier: any opaque string.
- ContractIdentifier.UTI: ISDA Universal Transaction Identifier (see UtiValidator for format rules).
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
Methods
Equals(IContractIdentifier?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(IContractIdentifier? other)
Parameters
otherIContractIdentifierAn object to compare with this object.
Returns
FromUti(string)
Construct a UTI.
public static ContractIdentifier FromUti(string value)
Parameters
valuestring
Returns
New(string)
Construct an opaque-string identifier.
public static ContractIdentifier New(string value)
Parameters
valuestring
Returns
NewWithUuid()
Construct an opaque identifier backed by a fresh Guid.
public static ContractIdentifier NewWithUuid()