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
                    
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" Version="11.0.28" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Extensions.Bool" Version="11.0.28" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Extensions.Bool" />
                    
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 --version 11.0.28
                    
#r "nuget: Soenneker.Extensions.Bool, 11.0.28"
                    
#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@11.0.28
                    
#: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&version=11.0.28
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Extensions.Bool&version=11.0.28
                    
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

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 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

    • 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
Loading failed

Configure .NET CI defaults and daily source scans