See the version list below for details.
Install-Package Pathoschild.DesignByContract -Version 1.1.0
dotnet add package Pathoschild.DesignByContract --version 1.1.0
<PackageReference Include="Pathoschild.DesignByContract" Version="1.1.0" />
paket add Pathoschild.DesignByContract --version 1.1.0
#r "nuget: Pathoschild.DesignByContract, 1.1.0"
// Install Pathoschild.DesignByContract as a Cake Addin #addin nuget:?package=Pathoschild.DesignByContract&version=1.1.0 // Install Pathoschild.DesignByContract as a Cake Tool #tool nuget:?package=Pathoschild.DesignByContract&version=1.1.0
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.
|.NET Framework||net40 net403 net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48|
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
Added compile-time validation; added [NotNullOrEmpty] and [NotNullOrBlank] attributes; fixed build error if annotated property has no accessible setter; reduced build time.