Soenneker.Extensions.DayOfWeek
11.0.136
Prefix Reserved
dotnet add package Soenneker.Extensions.DayOfWeek --version 11.0.136
NuGet\Install-Package Soenneker.Extensions.DayOfWeek -Version 11.0.136
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Extensions.DayOfWeek" Version="11.0.136" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Extensions.DayOfWeek" Version="11.0.136" />
<PackageReference Include="Soenneker.Extensions.DayOfWeek" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Extensions.DayOfWeek --version 11.0.136
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Extensions.DayOfWeek, 11.0.136"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Extensions.DayOfWeek@11.0.136
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Extensions.DayOfWeek&version=11.0.136
#tool nuget:?package=Soenneker.Extensions.DayOfWeek&version=11.0.136
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.Extensions.DayOfWeek
Compact one-character representations for DayOfWeekType values.
Installation
dotnet add package Soenneker.Extensions.DayOfWeek
Usage
using Soenneker.Enums.DayOfWeek;
using Soenneker.Extensions.DayOfWeek;
char monday = DayOfWeekType.Monday.ToChar(); // 'M'
string friday = DayOfWeekType.Friday.ToLetter(); // "F"
DayOfWeekType? missing = null;
char missingChar = missing.ToChar(); // '\0'
string missingLetter = missing.ToLetter(); // ""
The mapping is:
| Day | Result |
|---|---|
| Monday | M |
| Tuesday | T |
| Wednesday | W |
| Thursday | T |
| Friday | F |
| Saturday | S |
| Sunday | S |
ToChar() returns the null character for a null or unrecognized value. ToLetter() returns an empty string. The abbreviations are intentionally compact rather than unique: Tuesday and Thursday collide, as do Saturday and Sunday, so they should not be used as identifiers or for round-trip parsing.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net11.0
- Soenneker.Enums.DayOfWeek (>= 11.0.802)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.136 | 0 | 10/27/2026 |
| 11.0.135 | 0 | 10/27/2026 |
| 11.0.134 | 43 | 10/26/2026 |
| 11.0.133 | 43 | 10/26/2026 |
| 11.0.132 | 41 | 10/26/2026 |
| 11.0.131 | 46 | 10/26/2026 |
| 11.0.130 | 49 | 10/26/2026 |
| 11.0.129 | 40 | 10/26/2026 |
| 11.0.128 | 51 | 10/26/2026 |
| 4.0.127 | 88 | 10/15/2026 |
| 4.0.126 | 90 | 10/14/2026 |
| 4.0.125 | 87 | 10/14/2026 |
| 4.0.124 | 79 | 10/14/2026 |
| 4.0.123 | 90 | 10/14/2026 |
| 4.0.122 | 89 | 10/14/2026 |
| 4.0.121 | 94 | 10/14/2026 |
| 4.0.116 | 86 | 10/13/2026 |
| 4.0.115 | 97 | 10/12/2026 |
| 4.0.113 | 88 | 10/12/2026 |
| 4.0.112 | 93 | 10/12/2026 |
Loading failed
Update dependency Soenneker.Enums.DayOfWeek to 11.0.802 (#556)