Soenneker.Extensions.Bool.Nullable
4.0.398
Prefix Reserved
dotnet add package Soenneker.Extensions.Bool.Nullable --version 4.0.398
NuGet\Install-Package Soenneker.Extensions.Bool.Nullable -Version 4.0.398
<PackageReference Include="Soenneker.Extensions.Bool.Nullable" Version="4.0.398" />
<PackageVersion Include="Soenneker.Extensions.Bool.Nullable" Version="4.0.398" />
<PackageReference Include="Soenneker.Extensions.Bool.Nullable" />
paket add Soenneker.Extensions.Bool.Nullable --version 4.0.398
#r "nuget: Soenneker.Extensions.Bool.Nullable, 4.0.398"
#:package Soenneker.Extensions.Bool.Nullable@4.0.398
#addin nuget:?package=Soenneker.Extensions.Bool.Nullable&version=4.0.398
#tool nuget:?package=Soenneker.Extensions.Bool.Nullable&version=4.0.398
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 | 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
- 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 |
|---|---|---|
| 4.0.398 | 31 | 9/15/2026 |
| 4.0.397 | 53 | 9/12/2026 |
| 4.0.396 | 110 | 8/30/2026 |
| 4.0.395 | 102 | 8/29/2026 |
| 4.0.394 | 101 | 8/29/2026 |
| 4.0.393 | 277 | 7/27/2026 |
| 4.0.392 | 105 | 7/16/2026 |
| 4.0.391 | 404 | 6/18/2026 |
| 4.0.390 | 202 | 6/5/2026 |
| 4.0.389 | 433 | 4/22/2026 |
| 4.0.388 | 150 | 4/2/2026 |
| 4.0.387 | 131 | 3/12/2026 |
| 4.0.386 | 124 | 3/12/2026 |
| 4.0.385 | 115 | 3/12/2026 |
| 4.0.384 | 131 | 3/12/2026 |
| 4.0.383 | 125 | 3/10/2026 |
| 4.0.382 | 122 | 3/9/2026 |
| 4.0.381 | 117 | 3/9/2026 |
| 4.0.380 | 119 | 3/9/2026 |
| 4.0.379 | 128 | 3/4/2026 |
Update dependency dotnet-sdk to v10.0.401 (#815)