Class Tag

Namespace
Cratis.Chronicle
Assembly
Cratis.Chronicle.dll

Represents a tag associated with an event, observer, or read model.

public record Tag : ConceptAs<string>, IComparable<ConceptAs<string>>, IComparable<string>, IComparable, IEquatable<ConceptAs<string>>, IEquatable<Tag>
Inheritance
Tag
Implements
Inherited Members
Extension Methods

Constructors

Tag(Tag)

protected Tag(Tag original)

Parameters

original Tag

Tag(string)

Represents a tag associated with an event, observer, or read model.

public Tag(string Value)

Parameters

Value string

The value of the tag.

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Methods

Deconstruct(out string)

public void Deconstruct(out string Value)

Parameters

Value string

Equals(Tag?)

public virtual bool Equals(Tag? other)

Parameters

other Tag

Returns

bool

Equals(ConceptAs<string>?)

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

Parameters

other ConceptAs<string>

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

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

Parameters

left Tag
right Tag

Returns

bool

implicit operator Tag(string)

Implicitly converts a string to a Tag.

public static implicit operator Tag(string tag)

Parameters

tag string

The tag as a string.

Returns

Tag

operator !=(Tag?, Tag?)

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

Parameters

left Tag
right Tag

Returns

bool