Class EventCount

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

Represents a count of events.

public record EventCount : ConceptAs<ulong>, IComparable<ConceptAs<ulong>>, IComparable<ulong>, IComparable, IEquatable<ConceptAs<ulong>>, IEquatable<EventCount>
Inheritance
EventCount
Implements
Inherited Members
Extension Methods

Constructors

EventCount(EventCount)

protected EventCount(EventCount original)

Parameters

original EventCount

EventCount(ulong)

Represents a count of events.

public EventCount(ulong Value)

Parameters

Value ulong

The actual count.

Fields

Unlimited

The value representing an unlimited count.

public static readonly EventCount Unlimited

Field Value

EventCount

Zero

The value representing zero.

public static readonly EventCount Zero

Field Value

EventCount

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Methods

Deconstruct(out ulong)

public void Deconstruct(out ulong Value)

Parameters

Value ulong

Equals(EventCount?)

public virtual bool Equals(EventCount? other)

Parameters

other EventCount

Returns

bool

Equals(ConceptAs<ulong>?)

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

Parameters

other ConceptAs<ulong>

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

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

Parameters

left EventCount
right EventCount

Returns

bool

implicit operator EventCount(int)

Implicitly convert from int to EventCount.

public static implicit operator EventCount(int value)

Parameters

value int

Value to convert from.

Returns

EventCount

implicit operator EventCount(long)

Implicitly convert from long to EventCount.

public static implicit operator EventCount(long value)

Parameters

value long

Value to convert from.

Returns

EventCount

implicit operator EventCount(ulong)

Implicitly convert from ulong to EventCount.

public static implicit operator EventCount(ulong value)

Parameters

value ulong

Value to convert from.

Returns

EventCount

operator !=(EventCount?, EventCount?)

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

Parameters

left EventCount
right EventCount

Returns

bool