Soenneker.Extensions.NameValueCollection
4.0.839
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Extensions.NameValueCollection --version 4.0.839
NuGet\Install-Package Soenneker.Extensions.NameValueCollection -Version 4.0.839
<PackageReference Include="Soenneker.Extensions.NameValueCollection" Version="4.0.839" />
<PackageVersion Include="Soenneker.Extensions.NameValueCollection" Version="4.0.839" />
<PackageReference Include="Soenneker.Extensions.NameValueCollection" />
paket add Soenneker.Extensions.NameValueCollection --version 4.0.839
#r "nuget: Soenneker.Extensions.NameValueCollection, 4.0.839"
#:package Soenneker.Extensions.NameValueCollection@4.0.839
#addin nuget:?package=Soenneker.Extensions.NameValueCollection&version=4.0.839
#tool nuget:?package=Soenneker.Extensions.NameValueCollection&version=4.0.839
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 | 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. |
-
net10.0
- Soenneker.Extensions.String (>= 4.0.741)
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 |
|---|---|---|
| 4.0.843 | 32 | 9/9/2026 |
| 4.0.842 | 91 | 9/8/2026 |
| 4.0.841 | 244 | 9/8/2026 |
| 4.0.840 | 109 | 9/7/2026 |
| 4.0.839 | 176 | 9/7/2026 |
| 4.0.838 | 86 | 9/7/2026 |
| 4.0.837 | 319 | 9/5/2026 |
| 4.0.836 | 298 | 9/4/2026 |
| 4.0.835 | 57 | 9/4/2026 |
| 4.0.834 | 1,031 | 8/31/2026 |
| 4.0.833 | 230 | 8/31/2026 |
| 4.0.832 | 193 | 8/31/2026 |
| 4.0.831 | 106 | 8/31/2026 |
| 4.0.830 | 458 | 8/30/2026 |
| 4.0.829 | 178 | 8/30/2026 |
| 4.0.828 | 96 | 8/30/2026 |
| 4.0.827 | 87 | 8/30/2026 |
| 4.0.826 | 177 | 8/29/2026 |
| 4.0.824 | 88 | 8/29/2026 |
| 4.0.823 | 235 | 8/29/2026 |
Updated Multiple NuGet packages