Class PatternGroupingKey

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

Represents the scope patterns are mined and looked up within - typically the identity of the user the behavior belongs to.

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

Constructors

PatternGroupingKey(PatternGroupingKey)

protected PatternGroupingKey(PatternGroupingKey original)

Parameters

original PatternGroupingKey

PatternGroupingKey(string)

Represents the scope patterns are mined and looked up within - typically the identity of the user the behavior belongs to.

public PatternGroupingKey(string Value)

Parameters

Value string

The actual value.

Fields

Unspecified

Represents an unspecified PatternGroupingKey.

public static readonly PatternGroupingKey Unspecified

Field Value

PatternGroupingKey

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

IsSpecified

Gets a value indicating whether the key identifies a scope.

public bool IsSpecified { get; }

Property Value

bool

Methods

Deconstruct(out string)

public void Deconstruct(out string Value)

Parameters

Value string

Equals(PatternGroupingKey?)

public virtual bool Equals(PatternGroupingKey? other)

Parameters

other PatternGroupingKey

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

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

Parameters

left PatternGroupingKey
right PatternGroupingKey

Returns

bool

implicit operator PatternGroupingKey(string?)

Implicitly convert from a string to PatternGroupingKey.

public static implicit operator PatternGroupingKey(string? key)

Parameters

key string

String to convert from.

Returns

PatternGroupingKey

operator !=(PatternGroupingKey?, PatternGroupingKey?)

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

Parameters

left PatternGroupingKey
right PatternGroupingKey

Returns

bool