Soenneker.Dtos.MinMax
4.0.374
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Dtos.MinMax --version 4.0.374
NuGet\Install-Package Soenneker.Dtos.MinMax -Version 4.0.374
<PackageReference Include="Soenneker.Dtos.MinMax" Version="4.0.374" />
<PackageVersion Include="Soenneker.Dtos.MinMax" Version="4.0.374" />
<PackageReference Include="Soenneker.Dtos.MinMax" />
paket add Soenneker.Dtos.MinMax --version 4.0.374
#r "nuget: Soenneker.Dtos.MinMax, 4.0.374"
#:package Soenneker.Dtos.MinMax@4.0.374
#addin nuget:?package=Soenneker.Dtos.MinMax&version=4.0.374
#tool nuget:?package=Soenneker.Dtos.MinMax&version=4.0.374
Soenneker.Dtos.MinMax
A serializable pair of decimal bounds for APIs and configuration models that represent a minimum and maximum.
Install
dotnet add package Soenneker.Dtos.MinMax
Usage
using Soenneker.Dtos.MinMax;
var allowedPrice = new MinMax
{
Min = 10.00m,
Max = 75.50m
};
bool isAllowed = price >= allowedPrice.Min && price <= allowedPrice.Max;
It serializes with the property names min and max under System.Text.Json.
{
"min": 10.00,
"max": 75.50
}
MinMax is a transport model, not an interval implementation. It does not enforce Min <= Max, perform containment checks, or normalize reversed bounds; validate those rules in the consuming domain when they 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.Attributes.PublicOpenApiObject (>= 4.0.55)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Soenneker.Dtos.MinMax:
| Package | Downloads |
|---|---|
|
Soenneker.AutoFaker.Overrides.MinMax
An AutoFaker (AutoBogus) override for the DTO MinMax |
|
|
Soenneker.Extensions.Dictionaries.IntMinMax
A collection of helpful Dictionary int, MinMax extension methods |
|
|
Soenneker.Dtos.RangePointsPairs
A small, strongly typed data contract for associating a numeric range with a corresponding point value. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.392 | 315 | 10/30/2026 |
| 11.0.391 | 102 | 10/30/2026 |
| 11.0.390 | 205 | 10/26/2026 |
| 11.0.389 | 239 | 10/26/2026 |
| 4.0.388 | 774 | 10/14/2026 |
| 4.0.387 | 200 | 10/14/2026 |
| 4.0.386 | 89 | 10/14/2026 |
| 4.0.385 | 114 | 10/14/2026 |
| 4.0.384 | 116 | 10/14/2026 |
| 4.0.380 | 186 | 10/13/2026 |
| 4.0.379 | 184 | 10/12/2026 |
| 4.0.377 | 149 | 10/12/2026 |
| 4.0.376 | 274 | 10/11/2026 |
| 4.0.375 | 164 | 10/11/2026 |
| 4.0.374 | 512 | 9/30/2026 |
| 4.0.373 | 224 | 9/24/2026 |
| 4.0.372 | 111 | 9/24/2026 |
| 4.0.371 | 546 | 9/15/2026 |
| 4.0.370 | 111 | 9/15/2026 |
| 4.0.369 | 332 | 9/12/2026 |
Remove Newtonsoft serialization support