Soenneker.Extensions.Bool.Nullable 4.0.407

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Extensions.Bool.Nullable --version 4.0.407
                    
NuGet\Install-Package Soenneker.Extensions.Bool.Nullable -Version 4.0.407
                    
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.Bool.Nullable" Version="4.0.407" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Extensions.Bool.Nullable" Version="4.0.407" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Extensions.Bool.Nullable" />
                    
Project file
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.Bool.Nullable --version 4.0.407
                    
#r "nuget: Soenneker.Extensions.Bool.Nullable, 4.0.407"
                    
#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.Bool.Nullable@4.0.407
                    
#: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.Bool.Nullable&version=4.0.407
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Extensions.Bool.Nullable&version=4.0.407
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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
11.0.413 107 11/11/2026
11.0.412 102 11/10/2026
11.0.411 150 10/27/2026
11.0.410 99 10/26/2026
11.0.409 105 10/26/2026
4.0.408 456 10/14/2026
4.0.407 107 10/14/2026
4.0.402 112 10/12/2026
4.0.401 105 10/12/2026
4.0.400 118 10/11/2026
4.0.399 278 9/24/2026
4.0.398 218 9/15/2026
4.0.397 119 9/12/2026
4.0.396 142 8/30/2026
4.0.395 129 8/29/2026
4.0.394 140 8/29/2026
4.0.393 324 7/27/2026
4.0.392 135 7/16/2026
4.0.391 435 6/18/2026
4.0.390 223 6/5/2026
Loading failed

Use NuGet API token for publishing