Soenneker.Dtos.IdNameValue
11.0.685
Prefix Reserved
dotnet add package Soenneker.Dtos.IdNameValue --version 11.0.685
NuGet\Install-Package Soenneker.Dtos.IdNameValue -Version 11.0.685
<PackageReference Include="Soenneker.Dtos.IdNameValue" Version="11.0.685" />
<PackageVersion Include="Soenneker.Dtos.IdNameValue" Version="11.0.685" />
<PackageReference Include="Soenneker.Dtos.IdNameValue" />
paket add Soenneker.Dtos.IdNameValue --version 11.0.685
#r "nuget: Soenneker.Dtos.IdNameValue, 11.0.685"
#:package Soenneker.Dtos.IdNameValue@11.0.685
#addin nuget:?package=Soenneker.Dtos.IdNameValue&version=11.0.685
#tool nuget:?package=Soenneker.Dtos.IdNameValue&version=11.0.685
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"
};
System.Text.Json serializes 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 | net11.0 is compatible. |
-
net11.0
- Soenneker.Dtos.IdNamePair (>= 11.0.750)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Soenneker.Dtos.IdNameValue:
| Package | Downloads |
|---|---|
|
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 |
|---|---|---|
| 11.0.685 | 261 | 11/11/2026 |
| 11.0.684 | 72 | 11/11/2026 |
| 11.0.683 | 41 | 11/11/2026 |
| 11.0.682 | 677 | 10/30/2026 |
| 11.0.681 | 275 | 10/26/2026 |
| 11.0.680 | 115 | 10/26/2026 |
| 4.0.679 | 557 | 10/14/2026 |
| 4.0.678 | 142 | 10/14/2026 |
| 4.0.677 | 103 | 10/14/2026 |
| 4.0.676 | 159 | 10/14/2026 |
| 4.0.675 | 104 | 10/14/2026 |
| 4.0.668 | 161 | 10/13/2026 |
| 4.0.667 | 169 | 10/12/2026 |
| 4.0.665 | 145 | 10/12/2026 |
| 4.0.664 | 234 | 10/11/2026 |
| 4.0.663 | 167 | 10/11/2026 |
| 4.0.662 | 545 | 9/30/2026 |
| 4.0.661 | 118 | 9/30/2026 |
| 4.0.660 | 321 | 9/25/2026 |
| 4.0.659 | 126 | 9/24/2026 |
Updated Multiple NuGet packages