Class DerivedTypeId
- Namespace
- Cratis.Serialization
- Assembly
- Cratis.Fundamentals.dll
The unique identifier identifying a derived type.
public record DerivedTypeId : ConceptAs<string>, IComparable<ConceptAs<string>>, IComparable<string>, IComparable, IEquatable<ConceptAs<string>>, IEquatable<DerivedTypeId>
- Inheritance
-
DerivedTypeId
- Implements
- Inherited Members
- Extension Methods
Constructors
DerivedTypeId(DerivedTypeId)
protected DerivedTypeId(DerivedTypeId original)
Parameters
originalDerivedTypeId
DerivedTypeId(string)
The unique identifier identifying a derived type.
public DerivedTypeId(string id)
Parameters
idstringThe arbitrary string that identifies the type uniquely.
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
id
The arbitrary string that identifies the type uniquely.
public string id { get; init; }
Property Value
Methods
Deconstruct(out string)
public void Deconstruct(out string id)
Parameters
idstring
Equals(ConceptAs<string>?)
public override sealed bool Equals(ConceptAs<string>? other)
Parameters
Returns
Equals(DerivedTypeId?)
public virtual bool Equals(DerivedTypeId? other)
Parameters
otherDerivedTypeId
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
Operators
operator ==(DerivedTypeId?, DerivedTypeId?)
public static bool operator ==(DerivedTypeId? left, DerivedTypeId? right)
Parameters
leftDerivedTypeIdrightDerivedTypeId
Returns
implicit operator string(DerivedTypeId)
Implicitly convert from DerivedTypeId to string.
public static implicit operator string(DerivedTypeId id)
Parameters
idDerivedTypeIdDerivedTypeId to convert from.
Returns
implicit operator DerivedTypeId(string)
Implicitly convert from a string to DerivedTypeId.
public static implicit operator DerivedTypeId(string id)
Parameters
idstringString to convert from.
Returns
operator !=(DerivedTypeId?, DerivedTypeId?)
public static bool operator !=(DerivedTypeId? left, DerivedTypeId? right)
Parameters
leftDerivedTypeIdrightDerivedTypeId