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

original DerivedTypeId

DerivedTypeId(string)

The unique identifier identifying a derived type.

public DerivedTypeId(string id)

Parameters

id string

The arbitrary string that identifies the type uniquely.

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

id

The arbitrary string that identifies the type uniquely.

public string id { get; init; }

Property Value

string

Methods

Deconstruct(out string)

public void Deconstruct(out string id)

Parameters

id string

Equals(ConceptAs<string>?)

public override sealed bool Equals(ConceptAs<string>? other)

Parameters

other ConceptAs<string>

Returns

bool

Equals(DerivedTypeId?)

public virtual bool Equals(DerivedTypeId? other)

Parameters

other DerivedTypeId

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

Operators

operator ==(DerivedTypeId?, DerivedTypeId?)

public static bool operator ==(DerivedTypeId? left, DerivedTypeId? right)

Parameters

left DerivedTypeId
right DerivedTypeId

Returns

bool

implicit operator string(DerivedTypeId)

Implicitly convert from DerivedTypeId to string.

public static implicit operator string(DerivedTypeId id)

Parameters

id DerivedTypeId

DerivedTypeId to convert from.

Returns

string

implicit operator DerivedTypeId(string)

Implicitly convert from a string to DerivedTypeId.

public static implicit operator DerivedTypeId(string id)

Parameters

id string

String to convert from.

Returns

DerivedTypeId

operator !=(DerivedTypeId?, DerivedTypeId?)

public static bool operator !=(DerivedTypeId? left, DerivedTypeId? right)

Parameters

left DerivedTypeId
right DerivedTypeId

Returns

bool