Soenneker.Extensions.Bool.Nullable
11.0.413
Prefix Reserved
dotnet add package Soenneker.Extensions.Bool.Nullable --version 11.0.413
NuGet\Install-Package Soenneker.Extensions.Bool.Nullable -Version 11.0.413
<PackageReference Include="Soenneker.Extensions.Bool.Nullable" Version="11.0.413" />
<PackageVersion Include="Soenneker.Extensions.Bool.Nullable" Version="11.0.413" />
<PackageReference Include="Soenneker.Extensions.Bool.Nullable" />
paket add Soenneker.Extensions.Bool.Nullable --version 11.0.413
#r "nuget: Soenneker.Extensions.Bool.Nullable, 11.0.413"
#:package Soenneker.Extensions.Bool.Nullable@11.0.413
#addin nuget:?package=Soenneker.Extensions.Bool.Nullable&version=11.0.413
#tool nuget:?package=Soenneker.Extensions.Bool.Nullable&version=11.0.413
Soenneker.Extensions.Bool.Nullable
Checks nullable Booleans and formats all three states as fixed English text.
Installation
dotnet add package Soenneker.Extensions.Bool.Nullable
Usage
using Soenneker.Extensions.Bool.Nullable;
bool? value = null;
bool missingOrDisabled = value.IsNullOrFalse(); // true
string display = value.ToYesNoNullable(); // "Null"
string lower = value.ToYesNoNullableLower(); // "null"
Exact mappings
| Input | IsNullOrFalse() |
ToYesNoNullable() |
ToYesNoNullableLower() |
|---|---|---|---|
true |
false |
"Yes" |
"yes" |
false |
true |
"No" |
"no" |
null |
true |
"Null" |
"null" |
IsNullOrFalse() deliberately collapses false and null. Do not use it when “not supplied” and “explicitly disabled” have different domain meanings; check HasValue or pattern-match the three states instead.
The text methods are deterministic and culture-invariant. They are intended for simple display or fixed text contracts, not localization, parsing, or JSON serialization. They return the literal word Null, not a null string reference.
| 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.413 | 104 | 11/11/2026 |
| 11.0.412 | 97 | 11/10/2026 |
| 11.0.411 | 150 | 10/27/2026 |
| 11.0.410 | 98 | 10/26/2026 |
| 11.0.409 | 104 | 10/26/2026 |
| 4.0.408 | 427 | 10/14/2026 |
| 4.0.407 | 106 | 10/14/2026 |
| 4.0.402 | 111 | 10/12/2026 |
| 4.0.401 | 104 | 10/12/2026 |
| 4.0.400 | 116 | 10/11/2026 |
| 4.0.399 | 277 | 9/24/2026 |
| 4.0.398 | 217 | 9/15/2026 |
| 4.0.397 | 118 | 9/12/2026 |
| 4.0.396 | 139 | 8/30/2026 |
| 4.0.395 | 128 | 8/29/2026 |
| 4.0.394 | 139 | 8/29/2026 |
| 4.0.393 | 323 | 7/27/2026 |
| 4.0.392 | 132 | 7/16/2026 |
| 4.0.391 | 430 | 6/18/2026 |
| 4.0.390 | 222 | 6/5/2026 |
Upgrade .NET 11 release candidates to stable