Class EventTypeGeneration
- Namespace
- Cratis.Chronicle.Events
- Assembly
- Cratis.Chronicle.dll
Represents the generation of an EventType.
public record EventTypeGeneration : ConceptAs<uint>, IComparable<ConceptAs<uint>>, IComparable<uint>, IComparable, IEquatable<ConceptAs<uint>>, IEquatable<EventTypeGeneration>
- Inheritance
-
EventTypeGeneration
- Implements
- Inherited Members
- Extension Methods
Constructors
EventTypeGeneration(EventTypeGeneration)
protected EventTypeGeneration(EventTypeGeneration original)
Parameters
originalEventTypeGeneration
EventTypeGeneration(uint)
Represents the generation of an EventType.
public EventTypeGeneration(uint Value)
Parameters
ValueuintActual value.
Fields
First
Gets the definition of the first generation.
public static readonly EventTypeGeneration First
Field Value
FirstValue
Gets the underlying value of the first generation.
public const uint FirstValue = 1
Field Value
Unspecified
Gets the definition of the first generation.
public static readonly EventTypeGeneration Unspecified
Field Value
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Methods
Deconstruct(out uint)
public void Deconstruct(out uint Value)
Parameters
Valueuint
Equals(EventTypeGeneration?)
public virtual bool Equals(EventTypeGeneration? other)
Parameters
otherEventTypeGeneration
Returns
Equals(ConceptAs<uint>?)
public override sealed bool Equals(ConceptAs<uint>? 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 ==(EventTypeGeneration?, EventTypeGeneration?)
public static bool operator ==(EventTypeGeneration? left, EventTypeGeneration? right)
Parameters
leftEventTypeGenerationrightEventTypeGeneration
Returns
implicit operator EventTypeGeneration(uint)
Implicitly convert from uint to EventTypeGeneration.
public static implicit operator EventTypeGeneration(uint generation)
Parameters
Returns
operator !=(EventTypeGeneration?, EventTypeGeneration?)
public static bool operator !=(EventTypeGeneration? left, EventTypeGeneration? right)
Parameters
leftEventTypeGenerationrightEventTypeGeneration