Soenneker.Extensions.NameValueCollection
11.0.882
Prefix Reserved
dotnet add package Soenneker.Extensions.NameValueCollection --version 11.0.882
NuGet\Install-Package Soenneker.Extensions.NameValueCollection -Version 11.0.882
<PackageReference Include="Soenneker.Extensions.NameValueCollection" Version="11.0.882" />
<PackageVersion Include="Soenneker.Extensions.NameValueCollection" Version="11.0.882" />
<PackageReference Include="Soenneker.Extensions.NameValueCollection" />
paket add Soenneker.Extensions.NameValueCollection --version 11.0.882
#r "nuget: Soenneker.Extensions.NameValueCollection, 11.0.882"
#:package Soenneker.Extensions.NameValueCollection@11.0.882
#addin nuget:?package=Soenneker.Extensions.NameValueCollection&version=11.0.882
#tool nuget:?package=Soenneker.Extensions.NameValueCollection&version=11.0.882
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 (>= 4.0.800)
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.882 | 53 | 10/27/2026 |
| 11.0.881 | 134 | 10/26/2026 |
| 11.0.880 | 162 | 10/26/2026 |
| 4.0.879 | 804 | 10/15/2026 |
| 4.0.878 | 86 | 10/14/2026 |
| 4.0.877 | 164 | 10/14/2026 |
| 4.0.876 | 205 | 10/14/2026 |
| 4.0.874 | 81 | 10/14/2026 |
| 4.0.868 | 418 | 10/13/2026 |
| 4.0.867 | 186 | 10/12/2026 |
| 4.0.865 | 152 | 10/12/2026 |
| 4.0.863 | 321 | 10/12/2026 |
| 4.0.862 | 99 | 10/11/2026 |
| 4.0.860 | 274 | 10/11/2026 |
| 4.0.859 | 899 | 9/30/2026 |
| 4.0.858 | 997 | 9/25/2026 |
| 4.0.857 | 102 | 9/25/2026 |
| 4.0.856 | 111 | 9/24/2026 |
| 4.0.855 | 111 | 9/24/2026 |
| 4.0.854 | 852 | 9/16/2026 |
Remove redundant framework conditions