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

original PropertyExpression

PropertyExpression(string)

Represents the definition of a key.

public PropertyExpression(string Expression)

Parameters

Expression string

The key expression.

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Expression

The key expression.

public string Expression { get; init; }

Property Value

string

Methods

Deconstruct(out string)

public void Deconstruct(out string Expression)

Parameters

Expression string

Equals(PropertyExpression?)

public virtual bool Equals(PropertyExpression? other)

Parameters

other PropertyExpression

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

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

Parameters

left PropertyExpression
right PropertyExpression

Returns

bool

implicit operator PropertyExpression(string)

Implicitly convert from string to PropertyExpression.

public static implicit operator PropertyExpression(string expression)

Parameters

expression string

Expression string.

Returns

PropertyExpression

operator !=(PropertyExpression?, PropertyExpression?)

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

Parameters

left PropertyExpression
right PropertyExpression

Returns

bool