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
originalEventCount
EventCount(ulong)
Represents a count of events.
public EventCount(ulong Value)
Parameters
ValueulongThe actual count.
Fields
Unlimited
The value representing an unlimited count.
public static readonly EventCount Unlimited
Field Value
Zero
The value representing zero.
public static readonly EventCount Zero
Field Value
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Methods
Deconstruct(out ulong)
public void Deconstruct(out ulong Value)
Parameters
Valueulong
Equals(EventCount?)
public virtual bool Equals(EventCount? other)
Parameters
otherEventCount
Returns
Equals(ConceptAs<ulong>?)
public override sealed bool Equals(ConceptAs<ulong>? 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 ==(EventCount?, EventCount?)
public static bool operator ==(EventCount? left, EventCount? right)
Parameters
leftEventCountrightEventCount
Returns
implicit operator EventCount(int)
Implicitly convert from int to EventCount.
public static implicit operator EventCount(int value)
Parameters
valueintValue to convert from.
Returns
implicit operator EventCount(long)
Implicitly convert from long to EventCount.
public static implicit operator EventCount(long value)
Parameters
valuelongValue to convert from.
Returns
implicit operator EventCount(ulong)
Implicitly convert from ulong to EventCount.
public static implicit operator EventCount(ulong value)
Parameters
valueulongValue to convert from.
Returns
operator !=(EventCount?, EventCount?)
public static bool operator !=(EventCount? left, EventCount? right)
Parameters
leftEventCountrightEventCount