Soenneker.Dtos.IdNameValue
4.0.658
Prefix Reserved
dotnet add package Soenneker.Dtos.IdNameValue --version 4.0.658
NuGet\Install-Package Soenneker.Dtos.IdNameValue -Version 4.0.658
<PackageReference Include="Soenneker.Dtos.IdNameValue" Version="4.0.658" />
<PackageVersion Include="Soenneker.Dtos.IdNameValue" Version="4.0.658" />
<PackageReference Include="Soenneker.Dtos.IdNameValue" />
paket add Soenneker.Dtos.IdNameValue --version 4.0.658
#r "nuget: Soenneker.Dtos.IdNameValue, 4.0.658"
#:package Soenneker.Dtos.IdNameValue@4.0.658
#addin nuget:?package=Soenneker.Dtos.IdNameValue&version=4.0.658
#tool nuget:?package=Soenneker.Dtos.IdNameValue&version=4.0.658
Soenneker.Dtos.IdNameValue
Extends an ID/name resource reference with an optional string value.
Installation
dotnet add package Soenneker.Dtos.IdNameValue
Usage
using Soenneker.Dtos.IdNameValue;
var option = new IdNameValue
{
Id = "priority-high",
Name = "High priority",
Value = "high"
};
Both System.Text.Json and Newtonsoft.Json serialize the inherited id and name fields plus value:
{
"id": "priority-high",
"name": "High priority",
"value": "high"
}
Id and Name are required during normal C# construction; Value is optional. The package does not define whether Value is a machine key, display text, external code, or nullable sentinel—the consuming API owns that meaning and validation.
Record equality and hash codes include all three properties. They are mutable, so do not modify an instance while it is used as a dictionary key or stored in a hash set. Use a with expression to create changed copies when stable value semantics matter.
| 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.Dtos.IdNamePair (>= 4.0.728)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Soenneker.Dtos.IdNameValue:
| Package | Downloads |
|---|---|
|
Soenneker.Extensions.List.IdNameValue
An extension namespace reserved for lists of IdNameValue objects |
|
|
Soenneker.Dtos.IdNameValueIndex
A minimal Record type with an Id (string), Name (string), Value (string?), and Index (string?) and maximum JSON compatibility |
|
|
Soenneker.Responses.FileUpload
A record DTO type for common file upload functionality |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.658 | 363 | 9/15/2026 |
| 4.0.657 | 146 | 9/15/2026 |
| 4.0.656 | 309 | 9/12/2026 |
| 4.0.655 | 101 | 9/12/2026 |
| 4.0.654 | 115 | 9/12/2026 |
| 4.0.653 | 940 | 8/30/2026 |
| 4.0.652 | 122 | 8/30/2026 |
| 4.0.650 | 982 | 8/18/2026 |
| 4.0.649 | 129 | 8/18/2026 |
| 4.0.648 | 811 | 7/28/2026 |
| 4.0.647 | 185 | 7/27/2026 |
| 4.0.646 | 222 | 7/27/2026 |
| 4.0.645 | 804 | 7/16/2026 |
| 4.0.644 | 113 | 7/16/2026 |
| 4.0.643 | 1,329 | 6/19/2026 |
| 4.0.642 | 223 | 6/18/2026 |
| 4.0.641 | 1,026 | 6/5/2026 |
| 4.0.640 | 136 | 6/5/2026 |
| 4.0.639 | 169 | 6/5/2026 |
| 4.0.638 | 161 | 6/4/2026 |
Update dependency Soenneker.Dtos.IdNamePair to 4.0.728 (#1221)