Class SortField

Namespace
Cratis.Arc.Queries
Assembly
Cratis.Arc.Core.dll

Concept representing the name of a field to sort by.

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

Constructors

SortField(SortField)

protected SortField(SortField original)

Parameters

original SortField

SortField(string)

Concept representing the name of a field to sort by.

public SortField(string Value)

Parameters

Value string

Concept value.

Fields

NotSet

Represents a not-set SortField.

public static readonly SortField NotSet

Field Value

SortField

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Methods

Deconstruct(out string)

public void Deconstruct(out string Value)

Parameters

Value string

Equals(SortField?)

public virtual bool Equals(SortField? other)

Parameters

other SortField

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

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

Parameters

left SortField
right SortField

Returns

bool

implicit operator string(SortField)

Implicitly converts a SortField to a string.

public static implicit operator string(SortField sortField)

Parameters

sortField SortField

The SortField to convert from.

Returns

string

implicit operator SortField(string)

Implicitly converts a string to a SortField.

public static implicit operator SortField(string value)

Parameters

value string

The string to convert from.

Returns

SortField

operator !=(SortField?, SortField?)

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

Parameters

left SortField
right SortField

Returns

bool