Soenneker.Extensions.NameValueCollection
4.0.835
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Extensions.NameValueCollection --version 4.0.835
NuGet\Install-Package Soenneker.Extensions.NameValueCollection -Version 4.0.835
<PackageReference Include="Soenneker.Extensions.NameValueCollection" Version="4.0.835" />
<PackageVersion Include="Soenneker.Extensions.NameValueCollection" Version="4.0.835" />
<PackageReference Include="Soenneker.Extensions.NameValueCollection" />
paket add Soenneker.Extensions.NameValueCollection --version 4.0.835
#r "nuget: Soenneker.Extensions.NameValueCollection, 4.0.835"
#:package Soenneker.Extensions.NameValueCollection@4.0.835
#addin nuget:?package=Soenneker.Extensions.NameValueCollection&version=4.0.835
#tool nuget:?package=Soenneker.Extensions.NameValueCollection&version=4.0.835
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.737)
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.837 | 98 | 9/5/2026 |
| 4.0.836 | 163 | 9/4/2026 |
| 4.0.835 | 42 | 9/4/2026 |
| 4.0.834 | 732 | 8/31/2026 |
| 4.0.833 | 223 | 8/31/2026 |
| 4.0.832 | 188 | 8/31/2026 |
| 4.0.831 | 95 | 8/31/2026 |
| 4.0.830 | 449 | 8/30/2026 |
| 4.0.829 | 170 | 8/30/2026 |
| 4.0.828 | 91 | 8/30/2026 |
| 4.0.827 | 81 | 8/30/2026 |
| 4.0.826 | 171 | 8/29/2026 |
| 4.0.824 | 81 | 8/29/2026 |
| 4.0.823 | 229 | 8/29/2026 |
| 4.0.822 | 89 | 8/29/2026 |
| 4.0.821 | 575 | 8/26/2026 |
| 4.0.820 | 121 | 8/25/2026 |
| 4.0.819 | 99 | 8/25/2026 |
| 4.0.818 | 628 | 8/21/2026 |
| 4.0.817 | 598 | 8/18/2026 |
Updated Soenneker.Extensions.String to 4.0.737