Soenneker.Dtos.IdNameValue 11.0.686

Prefix Reserved
dotnet add package Soenneker.Dtos.IdNameValue --version 11.0.686
                    
NuGet\Install-Package Soenneker.Dtos.IdNameValue -Version 11.0.686
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Dtos.IdNameValue" Version="11.0.686" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Dtos.IdNameValue" Version="11.0.686" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Dtos.IdNameValue" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Dtos.IdNameValue --version 11.0.686
                    
#r "nuget: Soenneker.Dtos.IdNameValue, 11.0.686"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Dtos.IdNameValue@11.0.686
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Dtos.IdNameValue&version=11.0.686
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Dtos.IdNameValue&version=11.0.686
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

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 Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.686 227 11/18/2026
11.0.685 555 11/11/2026
11.0.684 120 11/11/2026
11.0.683 81 11/11/2026
11.0.682 686 10/30/2026
11.0.681 279 10/26/2026
11.0.680 118 10/26/2026
4.0.679 604 10/14/2026
4.0.678 142 10/14/2026
4.0.677 106 10/14/2026
4.0.676 159 10/14/2026
4.0.675 107 10/14/2026
4.0.668 161 10/13/2026
4.0.667 170 10/12/2026
4.0.665 148 10/12/2026
4.0.664 235 10/11/2026
4.0.663 170 10/11/2026
4.0.662 547 9/30/2026
4.0.661 120 9/30/2026
4.0.660 322 9/25/2026
Loading failed

Configure .NET CI defaults and daily source scans