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
                    
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.685" />
                    
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.685" />
                    
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.685
                    
#r "nuget: Soenneker.Dtos.IdNameValue, 11.0.685"
                    
#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.685
                    
#: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.685
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Dtos.IdNameValue&version=11.0.685
                    
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.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
Loading failed

Updated Multiple NuGet packages