MyNet.Primitives 19.6.0

dotnet add package MyNet.Primitives --version 19.6.0
                    
NuGet\Install-Package MyNet.Primitives -Version 19.6.0
                    
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="MyNet.Primitives" Version="19.6.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MyNet.Primitives" Version="19.6.0" />
                    
Directory.Packages.props
<PackageReference Include="MyNet.Primitives" />
                    
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 MyNet.Primitives --version 19.6.0
                    
#r "nuget: MyNet.Primitives, 19.6.0"
                    
#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 MyNet.Primitives@19.6.0
                    
#: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=MyNet.Primitives&version=19.6.0
                    
Install as a Cake Addin
#tool nuget:?package=MyNet.Primitives&version=19.6.0
                    
Install as a Cake Tool

<div align="center">

MyNet.Primitives

<img src="MyNetPrimitives.png" alt="MyNet.Primitives" width="96" height="96" />

Foundation library for the MyNet suite: SmartEnum, intervals, unit conversions, comparers, sequences, and shared primitives.

</div>

<div align="center">

MIT License NuGet .NET

</div>


Features

Feature Description
SmartEnum Strongly typed name/value pairs
Intervals Ranges, sequences, and numeric bounds
Conversions Unit conversions and physical quantities
Comparers Guards, comparers, and minimal BCL-only dependencies

Installation

dotnet add package MyNet.Primitives

Quick start

using MyNet.Primitives;
using MyNet.Primitives.Intervals;

public sealed class Priority : SmartEnum<Priority, int>
{
    public static readonly Priority Low = new(nameof(Low), 0);
    public static readonly Priority High = new(nameof(High), 1);

    private Priority(string name, int value) : base(name, value) { }
}

var range = new NumericRange<int>(1, 10);

Most MyNet packages depend on Primitives transitively. You rarely need to reference it explicitly unless you use only core types.


Documentation


<div align="center">

<sub>

Copyright © 2016-2026 - Stéphane ANDRE. All Rights Reserved.

<br/>

Released under the MIT License.

</sub>

</div>

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (16)

Showing the top 5 NuGet packages that depend on MyNet.Primitives:

Package Downloads
MyNet.Utilities

Cross-cutting utilities for .NET apps: caching, encryption, authentication helpers, progress reporting, threading, deferral, and dependency-injection-friendly services.

MyNet.Observable

MVVM-oriented observable models with INotifyPropertyChanged, edition tracking, FluentValidation integration, metadata, and an included Roslyn source generator.

MyNet.Humanizer

Localized human-readable text for dates, enums, lists, geography, and common .NET types (display strings beyond raw ToString()).

MyNet.Geography

Core geography model: ISO 3166 countries and continents, postal addresses, coordinates, and a pluggable country-flag provider contract.

MyNet.Generator

Pseudo-random value generators, weighted sampling, and sequence helpers for unit tests, benchmarks, and prototyping.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
19.6.0 190 6/6/2026
19.5.2 204 6/5/2026
19.5.1 208 6/5/2026
19.5.0 208 6/5/2026
19.3.6 238 6/3/2026
19.3.5 240 6/3/2026
19.3.4 242 6/3/2026
19.3.3 248 6/2/2026
19.3.2 248 6/2/2026
19.3.1 245 6/2/2026
19.3.0 259 6/1/2026
19.2.1 248 5/31/2026
19.2.0 249 5/31/2026
19.1.0 242 5/31/2026
19.0.0 255 5/29/2026