RuntimeContracts 0.3.1

Lightweight runtime-only library for contract validation.

Install-Package RuntimeContracts -Version 0.3.1
dotnet add package RuntimeContracts --version 0.3.1
<PackageReference Include="RuntimeContracts" Version="0.3.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RuntimeContracts --version 0.3.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: RuntimeContracts, 0.3.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install RuntimeContracts as a Cake Addin
#addin nuget:?package=RuntimeContracts&version=0.3.1

// Install RuntimeContracts as a Cake Tool
#tool nuget:?package=RuntimeContracts&version=0.3.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

0.3.1
               * Embed debugging information into the dll
           0.3.0
               * Add side-by-side fluent API that can be used with the existing contract checks.
           0.2.1
               * Add attributes for Debug and ForAll contracts to separate them from normal contracts.
           0.2.0
               * Add fluent API for no-allocation assertions with custom messages.

           0.1.10
               * Add DoesNotReturnIf attribute to all assertions to help with C# complier's flow analysis.

           0.1.9.1
           * Add support for C# non-nullable reference types.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on RuntimeContracts:

Repository Stars
SergeyTeplyakov/ErrorProne.NET
Set of roslyn-based analyzers for catching common C# errors (inspired by Google's error-prone)

Version History

Version Downloads Last updated
0.3.1 234 1/29/2021
0.3.0 105,144 3/25/2020
0.2.1 196 3/17/2020
0.1.10 782 3/10/2020
0.1.9.1 7,098 10/22/2019
0.1.9 204 10/21/2019
0.1.8 195 10/21/2019
0.1.7.2 23,775 10/22/2018
0.1.7.1 7,418 10/17/2018
0.1.7 398 10/17/2018
0.1.6 902 9/6/2018