Skip to main content
Metalama.Patterns.Contracts package icon

Metalama.Patterns.Contracts

Contract-Based Programming (or Design-by-Contract) with custom attributes such as [NotNull] or [Url] thanks to Metalama: pre-conditions, post-conditions and invariants.

Total Downloads
140.2K
140,205
Published
Sep 16, 2026
Latest stable version

Install

.NET CLI
dotnet add package Metalama.Patterns.Contracts --version 2026.1.28
Package Manager Console
Install-Package Metalama.Patterns.Contracts -Version 2026.1.28
PackageReference
<PackageReference Include="Metalama.Patterns.Contracts" Version="2026.1.28" />

Frameworks

.NETFramework4.7.2 net8.0 .NETStandard2.0

Dependencies

Metalama.Framework
.NETFramework4.7.2
[2026.1.28, )
[2026.1.28, )
Metalama.Framework
.NETStandard2.0
[2026.1.28, )

Adoption guide

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.