logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Struct OrderField

    A single field/direction step within a multi-field ordering.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Serenity.Persistence.Domain.ValueObjects
    Assembly: Serenity.Global.Domain.dll
    Syntax
    public readonly struct OrderField

    Constructors

    OrderField(string, StructuredSortDirection)

    Creates a new OrderField.

    Declaration
    public OrderField(string field, StructuredSortDirection direction)
    Parameters
    Type Name Description
    string field

    The field to order by. Cannot be null.

    StructuredSortDirection direction

    The direction to order the field in.

    Fields

    Direction

    The direction to order Field in.

    Declaration
    public readonly StructuredSortDirection Direction
    Field Value
    Type Description
    StructuredSortDirection

    Field

    The field to order by.

    Declaration
    public readonly string Field
    Field Value
    Type Description
    string

    Methods

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    ValueType.ToString()
    In this article
    © 2026 Serenity. All Rights Reserved