Soenneker.Extensions.Bool
11.0.28
Prefix Reserved
dotnet add package Soenneker.Extensions.Bool --version 11.0.28
NuGet\Install-Package Soenneker.Extensions.Bool -Version 11.0.28
<PackageReference Include="Soenneker.Extensions.Bool" Version="11.0.28" />
<PackageVersion Include="Soenneker.Extensions.Bool" Version="11.0.28" />
<PackageReference Include="Soenneker.Extensions.Bool" />
paket add Soenneker.Extensions.Bool --version 11.0.28
#r "nuget: Soenneker.Extensions.Bool, 11.0.28"
#:package Soenneker.Extensions.Bool@11.0.28
#addin nuget:?package=Soenneker.Extensions.Bool&version=11.0.28
#tool nuget:?package=Soenneker.Extensions.Bool&version=11.0.28
Soenneker.Extensions.Bool
Formats a non-nullable Boolean as fixed English Yes/No text.
Installation
dotnet add package Soenneker.Extensions.Bool
Usage
using Soenneker.Extensions.Bool;
string enabled = true.ToYesNo(); // "Yes"
string disabled = false.ToYesNo(); // "No"
string lowerEnabled = true.ToYesNoLower(); // "yes"
string lowerDisabled = false.ToYesNoLower(); // "no"
Both methods are deterministic and culture-invariant:
ToYesNo()returns"Yes"or"No".ToYesNoLower()returns"yes"or"no".
The output is intended for simple display or fixed text contracts. It is not localized, does not parse strings back to Boolean values, and does not change JSON Boolean serialization (true/false). Use application localization resources when the text is user-facing in multiple languages.
These extensions accept bool, not bool?. Use the separate nullable-Boolean extensions when a null value needs its own representation.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- No dependencies.
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.28 | 101 | 11/18/2026 |
| 11.0.27 | 89 | 11/11/2026 |
| 11.0.26 | 86 | 11/10/2026 |
| 11.0.25 | 112 | 10/27/2026 |
| 11.0.24 | 98 | 10/26/2026 |
| 11.0.23 | 103 | 10/26/2026 |
| 4.0.22 | 448 | 10/14/2026 |
| 4.0.21 | 102 | 10/14/2026 |
| 4.0.20 | 102 | 10/14/2026 |
| 4.0.16 | 95 | 10/12/2026 |
| 4.0.15 | 91 | 10/12/2026 |
| 4.0.14 | 105 | 10/11/2026 |
| 4.0.13 | 238 | 9/24/2026 |
| 4.0.12 | 207 | 9/15/2026 |
| 4.0.11 | 117 | 9/12/2026 |
| 4.0.10 | 123 | 8/30/2026 |
| 4.0.9 | 116 | 8/29/2026 |
| 4.0.8 | 126 | 8/29/2026 |
| 4.0.7 | 310 | 7/27/2026 |
| 4.0.6 | 126 | 7/16/2026 |
Configure .NET CI defaults and daily source scans