Skip to main content
Pathoschild.DesignByContract package icon

Pathoschild.DesignByContract

Enables code contracts on methods and properties. By annotating your code with attributes like [NotNull], you can remove common validation code and provide helpful exception messages, making your code 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
19.0K
18,969
Published
Oct 27, 2013
Latest stable version

Install

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

Frameworks

No framework metadata available.

Dependencies

[3.0.0, )

Adoption guide

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

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.