Pathoschild.DesignByContract
1.1.0
See the version list below for details.
dotnet add package Pathoschild.DesignByContract --version 1.1.0
NuGet\Install-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.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net40 is compatible. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
- Newtonsoft.Json (>= 4.5.0)
- PostSharp (>= 2.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.2.0 | 3,402 | 10/27/2013 |
1.1.0 | 1,390 | 5/16/2013 |
1.0.0 | 1,436 | 1/7/2013 |
0.1.6-alpha2 | 1,288 | 6/21/2012 |
0.1.4-alpha | 1,143 | 5/23/2012 |
0.1.3-alpha | 1,183 | 5/22/2012 |
Added compile-time validation; added [NotNullOrEmpty] and [NotNullOrBlank] attributes; fixed build error if annotated property has no accessible setter; reduced build time.