SuperStrong.Types
1.0.0-beta.11
See the version list below for details.
dotnet add package SuperStrong.Types --version 1.0.0-beta.11
NuGet\Install-Package SuperStrong.Types -Version 1.0.0-beta.11
<PackageReference Include="SuperStrong.Types" Version="1.0.0-beta.11" />
<PackageVersion Include="SuperStrong.Types" Version="1.0.0-beta.11" />
<PackageReference Include="SuperStrong.Types" />
paket add SuperStrong.Types --version 1.0.0-beta.11
#r "nuget: SuperStrong.Types, 1.0.0-beta.11"
#:package SuperStrong.Types@1.0.0-beta.11
#addin nuget:?package=SuperStrong.Types&version=1.0.0-beta.11&prerelease
#tool nuget:?package=SuperStrong.Types&version=1.0.0-beta.11&prerelease
SuperStrong.Types
Strong types for .NET — define once, use everywhere!
SuperStrong.Types is in beta: the API and features are not in final shape yet.
What does this library do?
You write this:
[StrongType<Guid>]
public sealed partial class UserId;
You get auto-generated:
- wrapping:
_value,From(...),TryFrom(...),AsPrimitive(),IStrongType<,> - equality:
==,!=,Equals(...),GetHashCode(),IEquatable<>,IEqualityOperators<,,> - comparison:
<,<=,>,>=,IComparable<>,IComparisonOperators<,,> - formatting:
ToString(...),IFormattable,ISpanFormattable,IUtf8SpanFormattable - parsing:
IParsable<>,ISpanParsable<>,IUtf8SpanParsable<> - conversion:
IConvertible,TypeConverter,JsonConverter
You can easily integrate it with:
- ASP.NET Core
- OpenAPI
- EF Core
- Hot Chocolate
- System.Text.Json
- Newtonsoft.Json
How to install?
Install the package from NuGet:
dotnet add package SuperStrong.Types --preview
This library targets .NET 10, so your project should target .NET 10 or higher to be compatible with SuperStrong.Types.
Why use this library?
Fighting primitive obsession usually requires a lot of boilerplate.
SuperStrong.Types generates that boilerplate for you, so you can focus on modelling your domain instead of writing repetitive code.
What's next?
- Find out more in the tutorial
- Learn about strong type validation and customization
- Take a look at the available integrations
Acknowledgements
SuperStrong.Types is inspired by two excellent libraries:
- StronglyTypedId by Andrew Lock
- Vogen by Steve Dunn
Thanks to both authors for the ideas and groundwork.
| 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 (4)
Showing the top 4 NuGet packages that depend on SuperStrong.Types:
| Package | Downloads |
|---|---|
|
SuperStrong.Types.EntityFrameworkCore
Strong types for .NET — define once, use everywhere! |
|
|
SuperStrong.Types.HotChocolate
Strong types for .NET — define once, use everywhere! |
|
|
SuperStrong.Types.NewtonsoftJson
Strong types for .NET — define once, use everywhere! |
|
|
SuperStrong.Types.AspNetCore.OpenApi
Strong types for .NET — define once, use everywhere! |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0-beta.15 | 62 | 7/6/2026 |
| 1.0.0-beta.14 | 70 | 7/5/2026 |
| 1.0.0-beta.13 | 74 | 7/5/2026 |
| 1.0.0-beta.12 | 75 | 7/4/2026 |
| 1.0.0-beta.11 | 72 | 7/4/2026 |
| 1.0.0-beta.10 | 109 | 6/26/2026 |
| 1.0.0-beta.9 | 73 | 6/26/2026 |
| 1.0.0-beta.8 | 71 | 6/24/2026 |
| 1.0.0-beta.7 | 75 | 6/23/2026 |
| 1.0.0-beta.6 | 89 | 6/23/2026 |
| 1.0.0-beta.5 | 80 | 6/22/2026 |
| 1.0.0-beta.4 | 70 | 6/20/2026 |
| 1.0.0-beta.3 | 67 | 6/20/2026 |
| 1.0.0-beta.2 | 66 | 6/20/2026 |
| 1.0.0-beta.1 | 63 | 6/20/2026 |
| 1.0.0-alpha.7 | 75 | 6/20/2026 |
| 1.0.0-alpha.6 | 78 | 6/19/2026 |
| 1.0.0-alpha.5 | 76 | 6/19/2026 |
| 1.0.0-alpha.4 | 80 | 6/18/2026 |
| 1.0.0-alpha.3 | 88 | 6/16/2026 |