Class PropertyExpression
- Namespace
- Cratis.Chronicle.Projections
- Assembly
- Cratis.Chronicle.dll
Represents the definition of a key.
public record PropertyExpression : ConceptAs<string>, IComparable<ConceptAs<string>>, IComparable<string>, IComparable, IEquatable<ConceptAs<string>>, IEquatable<PropertyExpression>
- Inheritance
-
PropertyExpression
- Implements
- Inherited Members
- Extension Methods
Constructors
PropertyExpression(PropertyExpression)
protected PropertyExpression(PropertyExpression original)
Parameters
originalPropertyExpression
PropertyExpression(string)
Represents the definition of a key.
public PropertyExpression(string Expression)
Parameters
ExpressionstringThe key expression.
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Expression
The key expression.
public string Expression { get; init; }
Property Value
Methods
Deconstruct(out string)
public void Deconstruct(out string Expression)
Parameters
Expressionstring
Equals(PropertyExpression?)
public virtual bool Equals(PropertyExpression? other)
Parameters
otherPropertyExpression
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 ==(PropertyExpression?, PropertyExpression?)
public static bool operator ==(PropertyExpression? left, PropertyExpression? right)
Parameters
leftPropertyExpressionrightPropertyExpression
Returns
implicit operator PropertyExpression(string)
Implicitly convert from string to PropertyExpression.
public static implicit operator PropertyExpression(string expression)
Parameters
expressionstringExpression string.
Returns
operator !=(PropertyExpression?, PropertyExpression?)
public static bool operator !=(PropertyExpression? left, PropertyExpression? right)
Parameters
leftPropertyExpressionrightPropertyExpression