Soenneker.Extensions.NameValueCollection
11.0.885
Prefix Reserved
dotnet add package Soenneker.Extensions.NameValueCollection --version 11.0.885
NuGet\Install-Package Soenneker.Extensions.NameValueCollection -Version 11.0.885
<PackageReference Include="Soenneker.Extensions.NameValueCollection" Version="11.0.885" />
<PackageVersion Include="Soenneker.Extensions.NameValueCollection" Version="11.0.885" />
<PackageReference Include="Soenneker.Extensions.NameValueCollection" />
paket add Soenneker.Extensions.NameValueCollection --version 11.0.885
#r "nuget: Soenneker.Extensions.NameValueCollection, 11.0.885"
#:package Soenneker.Extensions.NameValueCollection@11.0.885
#addin nuget:?package=Soenneker.Extensions.NameValueCollection&version=11.0.885
#tool nuget:?package=Soenneker.Extensions.NameValueCollection&version=11.0.885
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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Extensions.String (>= 11.0.810)
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.885 | 317 | 11/3/2026 |
| 11.0.884 | 182 | 11/3/2026 |
| 11.0.883 | 121 | 11/3/2026 |
| 11.0.882 | 384 | 10/27/2026 |
| 11.0.881 | 245 | 10/26/2026 |
| 11.0.880 | 273 | 10/26/2026 |
| 4.0.879 | 1,042 | 10/15/2026 |
| 4.0.878 | 99 | 10/14/2026 |
| 4.0.877 | 176 | 10/14/2026 |
| 4.0.876 | 219 | 10/14/2026 |
| 4.0.874 | 92 | 10/14/2026 |
| 4.0.868 | 559 | 10/13/2026 |
| 4.0.867 | 203 | 10/12/2026 |
| 4.0.865 | 158 | 10/12/2026 |
| 4.0.863 | 331 | 10/12/2026 |
| 4.0.862 | 105 | 10/11/2026 |
| 4.0.860 | 283 | 10/11/2026 |
| 4.0.859 | 910 | 9/30/2026 |
| 4.0.858 | 1,007 | 9/25/2026 |
| 4.0.857 | 106 | 9/25/2026 |
Updated Soenneker.Extensions.String to 11.0.810