SuperStrong.Types 1.0.0-alpha.5

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

NuGet Docs

SuperStrong.Types

Strong types for .NET — define once, use everywhere!

SuperStrong.Types is still in alpha. Some features may be incomplete or significantly changed before a stable release.

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
  • EF Core
  • HotChocolate
  • OpenAPI
  • Dapper
  • MessagePack

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?

Acknowledgements

SuperStrong.Types is inspired by two excellent libraries:

Thanks to both authors for the ideas and groundwork.

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 (3)

Showing the top 3 NuGet packages that depend on SuperStrong.Types:

Package Downloads
SuperStrong.Types.EntityFrameworkCore

Stong types for .NET — define once, use everywhere!

SuperStrong.Types.HotChocolate

Stong types for .NET — define once, use everywhere!

SuperStrong.Types.NewtonsoftJson

Stong 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-alpha.5 0 6/19/2026
1.0.0-alpha.4 29 6/18/2026
1.0.0-alpha.3 64 6/16/2026
1.0.0-alpha.2 63 6/15/2026
1.0.0-alpha.1 67 6/14/2026