Class EventTypeId

Namespace
Cratis.Chronicle.Events
Assembly
Cratis.Chronicle.dll

Represents the concept of the unique identifier of a type of event.

public record EventTypeId : ConceptAs<string>, IComparable<ConceptAs<string>>, IComparable<string>, IComparable, IEquatable<ConceptAs<string>>, IEquatable<EventTypeId>
Inheritance
EventTypeId
Implements
Inherited Members
Extension Methods

Constructors

EventTypeId(EventTypeId)

protected EventTypeId(EventTypeId original)

Parameters

original EventTypeId

EventTypeId(string)

Represents the concept of the unique identifier of a type of event.

public EventTypeId(string Value)

Parameters

Value string

Actual value.

Fields

Unknown

Represents the identifier for an unknown event type.

public static readonly EventTypeId Unknown

Field Value

EventTypeId

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Methods

Deconstruct(out string)

public void Deconstruct(out string Value)

Parameters

Value string

Equals(EventTypeId?)

public virtual bool Equals(EventTypeId? other)

Parameters

other EventTypeId

Returns

bool

Equals(ConceptAs<string>?)

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

Parameters

other ConceptAs<string>

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 ==(EventTypeId?, EventTypeId?)

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

Parameters

left EventTypeId
right EventTypeId

Returns

bool

implicit operator EventTypeId(string)

Implicitly convert from string to EventTypeId.

public static implicit operator EventTypeId(string id)

Parameters

id string

String to convert from.

Returns

EventTypeId

operator !=(EventTypeId?, EventTypeId?)

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

Parameters

left EventTypeId
right EventTypeId

Returns

bool