MyNet.Primitives
19.2.1
dotnet add package MyNet.Primitives --version 19.2.1
NuGet\Install-Package MyNet.Primitives -Version 19.2.1
<PackageReference Include="MyNet.Primitives" Version="19.2.1" />
<PackageVersion Include="MyNet.Primitives" Version="19.2.1" />
<PackageReference Include="MyNet.Primitives" />
paket add MyNet.Primitives --version 19.2.1
#r "nuget: MyNet.Primitives, 19.2.1"
#:package MyNet.Primitives@19.2.1
#addin nuget:?package=MyNet.Primitives&version=19.2.1
#tool nuget:?package=MyNet.Primitives&version=19.2.1
<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">
</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);
Related packages
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 | 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
- 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.