MyNet.Primitives 19.2.1

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

String processing toolkit: templating, slugification, sanitization, normalization, truncation, redaction, casing, and formatting pipelines for .NET applications.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
19.2.1 26 5/31/2026
19.2.0 48 5/31/2026
19.1.0 47 5/31/2026
19.0.0 89 5/29/2026