Class CausationType

Namespace
Cratis.Chronicle.Auditing
Assembly
Cratis.Chronicle.dll

Represents a causation type.

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

Constructors

CausationType(CausationType)

protected CausationType(CausationType original)

Parameters

original CausationType

CausationType(string)

Represents a causation type.

public CausationType(string Name)

Parameters

Name string

String representing the name of the type.

Fields

Root

Represents the root causation type.

public static readonly CausationType Root

Field Value

CausationType

Unknown

Represents the unknown causation type.

public static readonly CausationType Unknown

Field Value

CausationType

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Name

String representing the name of the type.

public string Name { get; init; }

Property Value

string

Methods

Deconstruct(out string)

public void Deconstruct(out string Name)

Parameters

Name string

Equals(CausationType?)

public virtual bool Equals(CausationType? other)

Parameters

other CausationType

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

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

Parameters

left CausationType
right CausationType

Returns

bool

implicit operator string(CausationType)

Implicitly convert from CausationType to string.

public static implicit operator string(CausationType causationType)

Parameters

causationType CausationType

Causation type to convert from.

Returns

string

implicit operator CausationType(string)

Implicitly convert from string to CausationType.

public static implicit operator CausationType(string name)

Parameters

name string

Name of causation type.

Returns

CausationType

operator !=(CausationType?, CausationType?)

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

Parameters

left CausationType
right CausationType

Returns

bool