Skip to main content
Pathoschild.DesignByContract.Annotations package icon

Pathoschild.DesignByContract.Annotations

(This is a subset of Pathoschild.DesignByContract that contains the annotations but does not enforce them.) A high-performance aspect-oriented argument validation framework built on top of the free edition of PostSharp which enables design-by-contract preconditions and postconditions. By annotating your code with attributes like [NotNull], you can eliminate boilerplate validation logic while enabling helpful exception messages and making your code much more robust and refactor-safe. These annotation attributes are also recognized by ReSharper when it has an equivalent annotation, which gives you real-time feedback on contract violations as you type.

Total Downloads
16.9K
16,911
Published
Jun 21, 2012
Latest stable version

Install

.NET CLI
dotnet add package Pathoschild.DesignByContract.Annotations --version 0.1.6-alpha2
Package Manager Console
Install-Package Pathoschild.DesignByContract.Annotations -Version 0.1.6-alpha2
PackageReference
<PackageReference Include="Pathoschild.DesignByContract.Annotations" Version="0.1.6-alpha2" />

Frameworks

No framework metadata available.

Dependencies

No declared dependencies.

Adoption guide

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

This version is marked prerelease. Validate its API and upgrade path before production use.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.

No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

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.