VirtualStorageLibrary
Search Results for

    Show / Hide Table of Contents

    Class VirtualSortCondition<T>

    Represents the conditions for sorting data, holding the property to sort by and the order (ascending or descending).

    Inheritance
    object
    VirtualSortCondition<T>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: AkiraNetwork.VirtualStorageLibrary
    Assembly: VirtualStorageLibrary.dll
    Syntax
    public class VirtualSortCondition<T>
    Type Parameters
    Name Description
    T

    The type of the entity to be sorted.

    Constructors

    VirtualSortCondition(Expression<Func<T, object>>, bool)

    Initializes a new instance of the VirtualSortCondition<T> class with the specified sorting property and order.

    Declaration
    public VirtualSortCondition(Expression<Func<T, object>> sortBy, bool ascending = true)
    Parameters
    Type Name Description
    Expression<Func<T, object>> sortBy

    The property to sort by.

    bool ascending

    A value indicating whether the sorting order is ascending.

    Properties

    Ascending

    Gets or sets a value indicating whether the sorting order is ascending. True if the order is ascending; otherwise, false.

    Declaration
    public bool Ascending { get; set; }
    Property Value
    Type Description
    bool

    A boolean value indicating whether the sorting order is ascending.

    SortBy

    Gets or sets the property used for sorting.

    Declaration
    public Expression<Func<T, object>> SortBy { get; set; }
    Property Value
    Type Description
    Expression<Func<T, object>>

    An expression that specifies the property to use for sorting.

    Extension Methods

    VirtualTextFormatter.GenerateSingleTableDebugText<T>(T)
    In this article
    Back to top Generated by DocFX