Class EventHash
- Namespace
- Cratis.Chronicle.Events
- Assembly
- Cratis.Chronicle.dll
Represents the hash of an event's content.
public record EventHash : ConceptAs<string>, IComparable<ConceptAs<string>>, IComparable<string>, IComparable, IEquatable<ConceptAs<string>>, IEquatable<EventHash>
- Inheritance
-
EventHash
- Implements
- Inherited Members
- Extension Methods
Constructors
EventHash(EventHash)
protected EventHash(EventHash original)
Parameters
originalEventHash
EventHash(string)
Represents the hash of an event's content.
public EventHash(string Value)
Parameters
ValuestringThe hash value.
Fields
NotSet
Gets the value when the hash is not set.
public static readonly EventHash NotSet
Field Value
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Methods
Deconstruct(out string)
public void Deconstruct(out string Value)
Parameters
Valuestring
Equals(EventHash?)
public virtual bool Equals(EventHash? other)
Parameters
otherEventHash
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 ==(EventHash?, EventHash?)
public static bool operator ==(EventHash? left, EventHash? right)
Parameters
Returns
implicit operator EventHash(string)
public static implicit operator EventHash(string value)
Parameters
valuestringValue to convert from.
Returns
operator !=(EventHash?, EventHash?)
public static bool operator !=(EventHash? left, EventHash? right)