File: Columns\SortedProperty.cs
Web Access
Project: src\src\Components\QuickGrid\Microsoft.AspNetCore.Components.QuickGrid\src\Microsoft.AspNetCore.Components.QuickGrid.csproj (Microsoft.AspNetCore.Components.QuickGrid)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace Microsoft.AspNetCore.Components.QuickGrid;
 
/// <summary>
/// Holds the name of a property and the direction to sort by.
/// </summary>
public readonly struct SortedProperty
{
    /// <summary>
    /// The property name for the sorting rule.
    /// </summary>
    public required string PropertyName { get; init; }
 
    /// <summary>
    /// The direction to sort by.
    /// </summary>
    public SortDirection Direction { get; init; }
}