Soenneker.Extensions.NameValueCollection 11.0.892

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

Extension methods for converting, filtering, and otherwise working with NameValueCollection data.

Installation

dotnet add package Soenneker.Extensions.NameValueCollection

Usage

using Soenneker.Extensions.NameValueCollection;

var headers = new NameValueCollection
{
    ["trace-id"] = "abc123",
    ["empty"] = ""
};

Dictionary<string, string> result = headers.ToDictionary();
// { "trace-id": "abc123" }

Null/empty keys and null/empty values are omitted. The resulting dictionary uses StringComparer.Ordinal and is always a new instance. A null or empty collection returns an empty dictionary.

NameValueCollection can hold multiple values for one key. Its indexed getter combines those values into one comma-separated string, and that combined value is what this method stores.

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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Soenneker.Extensions.NameValueCollection:

Package Downloads
Soenneker.Utils.String

A utility library for useful String operations

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.892 91 11/11/2026
11.0.891 164 11/11/2026
11.0.890 182 11/11/2026
11.0.889 76 11/11/2026
11.0.888 125 11/11/2026
11.0.887 132 11/11/2026
11.0.886 79 11/10/2026
11.0.885 637 11/3/2026
11.0.884 219 11/3/2026
11.0.883 141 11/3/2026
11.0.882 404 10/27/2026
11.0.881 249 10/26/2026
11.0.880 278 10/26/2026
4.0.879 1,151 10/15/2026
4.0.878 102 10/14/2026
4.0.877 179 10/14/2026
4.0.876 223 10/14/2026
4.0.874 94 10/14/2026
4.0.868 710 10/13/2026
4.0.867 206 10/12/2026
Loading failed

Updated Soenneker.Extensions.String to 11.0.820