Class Facet

Namespace
Cratis.Chronicle.Concepts.Patterns
Assembly
Cratis.Chronicle.dll

Represents a single contextual dimension and the value it held.

public record Facet : IEquatable<Facet>
Inheritance
Facet
Implements
Inherited Members
Extension Methods

Constructors

Facet(Facet)

protected Facet(Facet original)

Parameters

original Facet

Facet(FacetName, FacetValue)

Represents a single contextual dimension and the value it held.

public Facet(FacetName Name, FacetValue Value)

Parameters

Name FacetName

The FacetName.

Value FacetValue

The FacetValue.

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Name

The FacetName.

public FacetName Name { get; init; }

Property Value

FacetName

Value

public FacetValue Value { get; init; }

Property Value

FacetValue

Methods

Deconstruct(out FacetName, out FacetValue)

public void Deconstruct(out FacetName Name, out FacetValue Value)

Parameters

Name FacetName
Value FacetValue

Equals(Facet?)

public virtual bool Equals(Facet? other)

Parameters

other Facet

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 virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(Facet?, Facet?)

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

Parameters

left Facet
right Facet

Returns

bool

operator !=(Facet?, Facet?)

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

Parameters

left Facet
right Facet

Returns

bool