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

original EventTypeGeneration

EventTypeGeneration(uint)

Represents the generation of an EventType.

public EventTypeGeneration(uint Value)

Parameters

Value uint

Actual value.

Fields

First

Gets the definition of the first generation.

public static readonly EventTypeGeneration First

Field Value

EventTypeGeneration

FirstValue

Gets the underlying value of the first generation.

public const uint FirstValue = 1

Field Value

uint

Unspecified

Gets the definition of the first generation.

public static readonly EventTypeGeneration Unspecified

Field Value

EventTypeGeneration

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Methods

Deconstruct(out uint)

public void Deconstruct(out uint Value)

Parameters

Value uint

Equals(EventTypeGeneration?)

public virtual bool Equals(EventTypeGeneration? other)

Parameters

other EventTypeGeneration

Returns

bool

Equals(ConceptAs<uint>?)

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

Parameters

other ConceptAs<uint>

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

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

Parameters

left EventTypeGeneration
right EventTypeGeneration

Returns

bool

implicit operator EventTypeGeneration(uint)

Implicitly convert from uint to EventTypeGeneration.

public static implicit operator EventTypeGeneration(uint generation)

Parameters

generation uint

uint to convert from.

Returns

EventTypeGeneration

operator !=(EventTypeGeneration?, EventTypeGeneration?)

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

Parameters

left EventTypeGeneration
right EventTypeGeneration

Returns

bool