Soenneker.Extensions.NameValueCollection
4.0.836
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Extensions.NameValueCollection --version 4.0.836
NuGet\Install-Package Soenneker.Extensions.NameValueCollection -Version 4.0.836
<PackageReference Include="Soenneker.Extensions.NameValueCollection" Version="4.0.836" />
<PackageVersion Include="Soenneker.Extensions.NameValueCollection" Version="4.0.836" />
<PackageReference Include="Soenneker.Extensions.NameValueCollection" />
paket add Soenneker.Extensions.NameValueCollection --version 4.0.836
#r "nuget: Soenneker.Extensions.NameValueCollection, 4.0.836"
#:package Soenneker.Extensions.NameValueCollection@4.0.836
#addin nuget:?package=Soenneker.Extensions.NameValueCollection&version=4.0.836
#tool nuget:?package=Soenneker.Extensions.NameValueCollection&version=4.0.836
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.738)
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.854 | 51 | 9/16/2026 |
| 4.0.853 | 35 | 9/16/2026 |
| 4.0.852 | 31 | 9/16/2026 |
| 4.0.851 | 42 | 9/15/2026 |
| 4.0.850 | 305 | 9/13/2026 |
| 4.0.849 | 62 | 9/13/2026 |
| 4.0.848 | 203 | 9/13/2026 |
| 4.0.847 | 54 | 9/13/2026 |
| 4.0.846 | 254 | 9/12/2026 |
| 4.0.845 | 54 | 9/12/2026 |
| 4.0.844 | 60 | 9/12/2026 |
| 4.0.843 | 364 | 9/9/2026 |
| 4.0.842 | 228 | 9/8/2026 |
| 4.0.841 | 424 | 9/8/2026 |
| 4.0.840 | 183 | 9/7/2026 |
| 4.0.839 | 272 | 9/7/2026 |
| 4.0.838 | 135 | 9/7/2026 |
| 4.0.837 | 383 | 9/5/2026 |
| 4.0.836 | 343 | 9/4/2026 |
| 4.0.835 | 100 | 9/4/2026 |
Update dependency Soenneker.Extensions.String to 4.0.738 (#1218)