Soenneker.Enums.SortDirections
4.0.74
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Enums.SortDirections --version 4.0.74
NuGet\Install-Package Soenneker.Enums.SortDirections -Version 4.0.74
<PackageReference Include="Soenneker.Enums.SortDirections" Version="4.0.74" />
<PackageVersion Include="Soenneker.Enums.SortDirections" Version="4.0.74" />
<PackageReference Include="Soenneker.Enums.SortDirections" />
paket add Soenneker.Enums.SortDirections --version 4.0.74
#r "nuget: Soenneker.Enums.SortDirections, 4.0.74"
#:package Soenneker.Enums.SortDirections@4.0.74
#addin nuget:?package=Soenneker.Enums.SortDirections&version=4.0.74
#tool nuget:?package=Soenneker.Enums.SortDirections&version=4.0.74
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 | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Soenneker.Attributes.PublicOpenApiObject (>= 4.0.52)
- Soenneker.Gen.EnumValues (>= 4.0.48)
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 |
|---|---|---|
| 4.0.83 | 0 | 9/30/2026 |
| 4.0.82 | 682 | 9/25/2026 |
| 4.0.81 | 50 | 9/24/2026 |
| 4.0.80 | 52 | 9/24/2026 |
| 4.0.79 | 1,187 | 9/15/2026 |
| 4.0.78 | 81 | 9/15/2026 |
| 4.0.77 | 100 | 9/15/2026 |
| 4.0.76 | 1,278 | 9/12/2026 |
| 4.0.75 | 90 | 9/12/2026 |
| 4.0.74 | 88 | 9/12/2026 |
| 4.0.72 | 2,304 | 9/4/2026 |
| 4.0.71 | 1,377 | 8/30/2026 |
| 4.0.70 | 354 | 8/30/2026 |
| 4.0.69 | 101 | 8/30/2026 |
| 4.0.68 | 97 | 8/30/2026 |
| 4.0.67 | 97 | 8/29/2026 |
| 4.0.66 | 2,357 | 8/21/2026 |
| 4.0.65 | 734 | 8/18/2026 |
| 4.0.64 | 287 | 8/18/2026 |
| 4.0.63 | 113 | 8/18/2026 |
Use NuGet trusted publishing in publishing workflows