Soenneker.Enums.SortDirections
11.0.105
Prefix Reserved
dotnet add package Soenneker.Enums.SortDirections --version 11.0.105
NuGet\Install-Package Soenneker.Enums.SortDirections -Version 11.0.105
<PackageReference Include="Soenneker.Enums.SortDirections" Version="11.0.105" />
<PackageVersion Include="Soenneker.Enums.SortDirections" Version="11.0.105" />
<PackageReference Include="Soenneker.Enums.SortDirections" />
paket add Soenneker.Enums.SortDirections --version 11.0.105
#r "nuget: Soenneker.Enums.SortDirections, 11.0.105"
#:package Soenneker.Enums.SortDirections@11.0.105
#addin nuget:?package=Soenneker.Enums.SortDirections&version=11.0.105
#tool nuget:?package=Soenneker.Enums.SortDirections&version=11.0.105
Soenneker.Enums.SortDirections
A string-backed enum-value type for carrying an ascending or descending sort direction in query contracts.
Install
dotnet add package Soenneker.Enums.SortDirections
Usage
using Soenneker.Enums.SortDirections;
SortDirection direction = SortDirection.Asc;
string wireValue = direction.Value; // "asc"
if (SortDirection.TryFromValue(input, out SortDirection? parsed))
{
direction = parsed;
}
Available wire values:
SortDirection.Asc→"asc"SortDirection.Desc→"desc"
System.Text.Json serializes the type as its lowercase value and restores recognized values to the shared static instances. FromValue throws for unknown input; use TryFromValue for query parameters. FromName and TryFromName use the C# member names, "Asc" and "Desc".
The type supplies direction only. The query implementation defines ordering for strings, nulls, dates, and locale-sensitive data. Validate sort fields against an explicit allowlist and build queries with the target API or database's parameterized expression mechanisms; a valid direction does not make an arbitrary field name safe.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Attributes.PublicOpenApiObject (>= 11.0.66)
- Soenneker.Gen.EnumValues (>= 11.0.65)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.Enums.SortDirections:
| Package | Downloads |
|---|---|
|
Soenneker.Dtos.Options.OrderBy
An object for ordering during querying |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.105 | 389 | 11/11/2026 |
| 11.0.104 | 1,940 | 10/26/2026 |
| 11.0.103 | 201 | 10/26/2026 |
| 11.0.102 | 91 | 10/26/2026 |
| 11.0.101 | 212 | 10/26/2026 |
| 4.0.100 | 1,407 | 10/15/2026 |
| 4.0.99 | 130 | 10/14/2026 |
| 4.0.98 | 108 | 10/14/2026 |
| 4.0.97 | 163 | 10/14/2026 |
| 4.0.96 | 297 | 10/14/2026 |
| 4.0.90 | 227 | 10/13/2026 |
| 4.0.89 | 237 | 10/12/2026 |
| 4.0.86 | 444 | 10/11/2026 |
| 4.0.85 | 102 | 10/11/2026 |
| 4.0.84 | 118 | 10/11/2026 |
| 4.0.83 | 2,371 | 9/30/2026 |
| 4.0.82 | 1,257 | 9/25/2026 |
| 4.0.81 | 103 | 9/24/2026 |
| 4.0.80 | 104 | 9/24/2026 |
| 4.0.79 | 1,239 | 9/15/2026 |
Upgrade .NET 11 release candidates to stable