Soenneker.Enums.DayOfWeek
4.0.796
Prefix Reserved
dotnet add package Soenneker.Enums.DayOfWeek --version 4.0.796
NuGet\Install-Package Soenneker.Enums.DayOfWeek -Version 4.0.796
<PackageReference Include="Soenneker.Enums.DayOfWeek" Version="4.0.796" />
<PackageVersion Include="Soenneker.Enums.DayOfWeek" Version="4.0.796" />
<PackageReference Include="Soenneker.Enums.DayOfWeek" />
paket add Soenneker.Enums.DayOfWeek --version 4.0.796
#r "nuget: Soenneker.Enums.DayOfWeek, 4.0.796"
#:package Soenneker.Enums.DayOfWeek@4.0.796
#addin nuget:?package=Soenneker.Enums.DayOfWeek&version=4.0.796
#tool nuget:?package=Soenneker.Enums.DayOfWeek&version=4.0.796
Soenneker.Enums.DayOfWeek
A string-backed enum-value type for representing a named day in API and application contracts.
Install
dotnet add package Soenneker.Enums.DayOfWeek
Usage
using Soenneker.Enums.DayOfWeek;
DayOfWeekType day = DayOfWeekType.Monday;
string wireValue = day.Value; // "Monday"
if (DayOfWeekType.TryFromValue(input, out DayOfWeekType? parsed))
{
// parsed is one of the shared static instances
}
Available values are Sunday through Saturday, with matching case-sensitive string values. System.Text.Json serializes the type as that string and restores recognized values to the corresponding static instance. FromValue throws for unknown input; use TryFromValue for request values. FromName and TryFromName are also generated.
DayOfWeekType is not System.DayOfWeek and does not define numeric values or culture-specific week ordering. Convert deliberately when a BCL API is required:
System.DayOfWeek systemDay = Enum.Parse<System.DayOfWeek>(day.Value);
DayOfWeekType contractDay = DayOfWeekType.FromValue(systemDay.ToString());
The type identifies a day only. The consuming application still defines the first day of the week, locale-specific display text, time zone, and business-day rules.
| 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.64)
- Soenneker.Gen.EnumValues (>= 4.0.64)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on Soenneker.Enums.DayOfWeek:
| Package | Downloads |
|---|---|
|
Soenneker.Extensions.DateTime.Day
A collection of helpful DateTime day-based extension methods |
|
|
Soenneker.Cron.Builder
A fluent, flexible utility that dynamically constructs validated 5 or 6 field cron expressions through intuitive method chaining for any scheduling scenario. |
|
|
Soenneker.Utils.CronExpressions
A comprehensive utility class that provides intuitive, validated, and fluent methods for generating dynamic and human-readable cron expressions for scheduling tasks. |
|
|
Soenneker.Extensions.DateTimeOffsets.Days
A collection of helpful DateTimeOffset day extension methods |
|
|
Soenneker.Extensions.DayOfWeek
A collection of helpful DayOfWeek enum extension methods |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.796 | 368 | 10/15/2026 |
| 4.0.795 | 167 | 10/14/2026 |
| 4.0.794 | 227 | 10/14/2026 |
| 4.0.792 | 110 | 10/14/2026 |
| 4.0.791 | 60 | 10/14/2026 |
| 4.0.790 | 55 | 10/14/2026 |
| 4.0.785 | 172 | 10/13/2026 |
| 4.0.784 | 151 | 10/12/2026 |
| 4.0.782 | 285 | 10/12/2026 |
| 4.0.781 | 428 | 10/11/2026 |
| 4.0.780 | 388 | 10/11/2026 |
| 4.0.779 | 167 | 10/11/2026 |
| 4.0.778 | 1,265 | 9/30/2026 |
| 4.0.777 | 438 | 9/25/2026 |
| 4.0.776 | 109 | 9/24/2026 |
| 4.0.775 | 126 | 9/24/2026 |
| 4.0.774 | 1,085 | 9/15/2026 |
| 4.0.773 | 259 | 9/15/2026 |
| 4.0.772 | 106 | 9/15/2026 |
| 4.0.771 | 105 | 9/15/2026 |
Updated NuGet packages