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
originalEventTypeId
EventTypeId(string)
Represents the concept of the unique identifier of a type of event.
public EventTypeId(string Value)
Parameters
ValuestringActual value.
Fields
Unknown
Represents the identifier for an unknown event type.
public static readonly EventTypeId Unknown
Field Value
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Methods
Deconstruct(out string)
public void Deconstruct(out string Value)
Parameters
Valuestring
Equals(EventTypeId?)
public virtual bool Equals(EventTypeId? other)
Parameters
otherEventTypeId
Returns
Equals(ConceptAs<string>?)
public override sealed bool Equals(ConceptAs<string>? other)
Parameters
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 ==(EventTypeId?, EventTypeId?)
public static bool operator ==(EventTypeId? left, EventTypeId? right)
Parameters
leftEventTypeIdrightEventTypeId
Returns
implicit operator EventTypeId(string)
Implicitly convert from string to EventTypeId.
public static implicit operator EventTypeId(string id)
Parameters
idstringString to convert from.
Returns
operator !=(EventTypeId?, EventTypeId?)
public static bool operator !=(EventTypeId? left, EventTypeId? right)
Parameters
leftEventTypeIdrightEventTypeId