Class ObserverId
- Namespace
- Cratis.Chronicle.Observation
- Assembly
- Cratis.Chronicle.dll
Concept that represents the unique identifier of an observer.
public record ObserverId : ConceptAs<string>, IComparable<ConceptAs<string>>, IComparable<string>, IComparable, IEquatable<ConceptAs<string>>, IEquatable<ObserverId>
- Inheritance
-
ObserverId
- Implements
- Inherited Members
- Extension Methods
Constructors
ObserverId(ObserverId)
protected ObserverId(ObserverId original)
Parameters
originalObserverId
ObserverId(string)
Concept that represents the unique identifier of an observer.
public ObserverId(string Value)
Parameters
ValuestringActual value.
Fields
Unspecified
Gets the representation of an unspecified ObserverId.
public static readonly ObserverId Unspecified
Field Value
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Methods
Deconstruct(out string)
public void Deconstruct(out string Value)
Parameters
Valuestring
Equals(ObserverId?)
public virtual bool Equals(ObserverId? other)
Parameters
otherObserverId
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 ==(ObserverId?, ObserverId?)
public static bool operator ==(ObserverId? left, ObserverId? right)
Parameters
leftObserverIdrightObserverId
Returns
implicit operator string(ObserverId)
Implicitly convert from ObserverId to string.
public static implicit operator string(ObserverId id)
Parameters
idObserverIdObserverId to convert from.
Returns
implicit operator ObserverId(string)
Implicitly convert from a string to ObserverId.
public static implicit operator ObserverId(string id)
Parameters
idstringString to convert from.
Returns
operator !=(ObserverId?, ObserverId?)
public static bool operator !=(ObserverId? left, ObserverId? right)
Parameters
leftObserverIdrightObserverId