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
originalCausationType
CausationType(string)
Represents a causation type.
public CausationType(string Name)
Parameters
NamestringString representing the name of the type.
Fields
Root
Represents the root causation type.
public static readonly CausationType Root
Field Value
Unknown
Represents the unknown causation type.
public static readonly CausationType Unknown
Field Value
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Name
String representing the name of the type.
public string Name { get; init; }
Property Value
Methods
Deconstruct(out string)
public void Deconstruct(out string Name)
Parameters
Namestring
Equals(CausationType?)
public virtual bool Equals(CausationType? other)
Parameters
otherCausationType
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 ==(CausationType?, CausationType?)
public static bool operator ==(CausationType? left, CausationType? right)
Parameters
leftCausationTyperightCausationType
Returns
implicit operator string(CausationType)
Implicitly convert from CausationType to string.
public static implicit operator string(CausationType causationType)
Parameters
causationTypeCausationTypeCausation type to convert from.
Returns
implicit operator CausationType(string)
Implicitly convert from string to CausationType.
public static implicit operator CausationType(string name)
Parameters
namestringName of causation type.
Returns
operator !=(CausationType?, CausationType?)
public static bool operator !=(CausationType? left, CausationType? right)
Parameters
leftCausationTyperightCausationType