Validation 2.6.68
dotnet add package Validation --version 2.6.68
NuGet\Install-Package Validation -Version 2.6.68
<PackageReference Include="Validation" Version="2.6.68" />
<PackageVersion Include="Validation" Version="2.6.68" />
<PackageReference Include="Validation" />
paket add Validation --version 2.6.68
#r "nuget: Validation, 2.6.68"
#:package Validation@2.6.68
#addin nuget:?package=Validation&version=2.6.68
#tool nuget:?package=Validation&version=2.6.68
Validation
Method input validation and runtime checks that report errors or throw exceptions when failures are detected.
Check out our full documentation.
Basic input validation via the Requires class throws an ArgumentException.
Requires.NotNull(arg1);
Requires.NotNullOrEmpty(arg2);
State validation via the Verify class throws an InvalidOperationException.
Verify.Operation(condition, "some error occurred.");
Internal integrity checks via the Assumes class throws an
InternalErrorException.
Assumes.True(condition, "some error");
Warning signs that should not throw exceptions via the Report class.
Report.IfNot(condition, "some error");
| Product | Versions Compatible and additional computed target framework versions. | 
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. | 
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. | 
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. | 
| .NET Framework | net35 is compatible. net40 was computed. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. | 
| MonoAndroid | monoandroid was computed. | 
| MonoMac | monomac was computed. | 
| MonoTouch | monotouch was computed. | 
| Tizen | tizen40 was computed. tizen60 was computed. | 
| Xamarin.iOS | xamarinios was computed. | 
| Xamarin.Mac | xamarinmac was computed. | 
| Xamarin.TVOS | xamarintvos was computed. | 
| Xamarin.WatchOS | xamarinwatchos was computed. | 
- 
                                                    .NETFramework 3.5- No dependencies.
 
- 
                                                    .NETFramework 4.6.2- No dependencies.
 
- 
                                                    .NETStandard 2.0- No dependencies.
 
- 
                                                    net8.0- No dependencies.
 
- 
                                                    net9.0- No dependencies.
 
NuGet packages (80)
Showing the top 5 NuGet packages that depend on Validation:
| Package | Downloads | 
|---|---|
| Xunit.SkippableFact Make your Xunit test methods self-determine to report a "skipped" result. Useful for such cases as "not supported on this platform" results or other environmental inputs. | |
| Microsoft.Diagnostics.EventFlow.Core Defines core interfaces and types that comprise Microsoft.Diagnostics.EventFlow library. | |
| Microsoft.Diagnostics.EventFlow.EtwUtilities Provides utility classes for processing data from Event Tracing for Windows (ETW) providers. | |
| PInvoke.User32 P/Invoke methods for the Windows User32.dll. | |
| DotNetOpenAuth.Mvc5 Provides the HttpResponseMessage.AsActionResult() extension method. | 
GitHub repositories (29)
Showing the top 20 popular GitHub repositories that depend on Validation:
| Repository | Stars | 
|---|---|
| mono/SkiaSharp 
                                                            SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.
                                                         | |
| xamarin/xamarin-forms-samples 
                                                            Sample apps built using the Xamarin.Forms framework
                                                         | |
| dotnet/pinvoke 
                                                            A library containing all P/Invoke code so you don't have to import it every time. Maintained and updated to support the latest Windows OS.
                                                         | |
| xamarin/XamarinComponents 
                                                            Plugins for Xamarin
                                                         | |
| DotNetOpenAuth/DotNetOpenAuth 
                                                            A C# implementation of the OpenID, OAuth protocols
                                                         | |
| dotnet/Nerdbank.GitVersioning 
                                                            Stamp your assemblies, packages and more with a unique version generated from a single, simple version.json file and include git commit IDs for non-official builds.
                                                         | |
| xamarin/mobile-samples | |
| pjvds/ncqrs 
                                                            Ncqrs Framework - The CQRS Framework for .NET
                                                         | |
| xamarin/Xamarin.Auth 
                                                            Xamarin.Auth
                                                         | |
| AArnott/CodeGeneration.Roslyn 
                                                            Assists in performing Roslyn-based code generation during a build.
                                                         | |
| Azure/connectthedots 
                                                            Connect tiny devices to Microsoft Azure services to build IoT solutions
                                                         | |
| Azure-Samples/MyDriving 
                                                            Building IoT or Mobile solutions are fun and exciting. This year for Build, we wanted to show the amazing scenarios that can come together when these two are combined. So, we went and developed a sample application. MyDriving uses a wide range of Azure services to process and analyze car telemetry data for both real-time insights and long-term patterns and trends. The following features are supported in the current version of the mobile app.
                                                         | |
| Azure/diagnostics-eventflow 
                                                            Microsoft Diagnostics EventFlow
                                                         | |
| redis/NRedisStack 
                                                            Redis Stack .Net client
                                                         | |
| adrianhall/develop-mobile-apps-with-csharp-and-azure 
                                                            The Book Contents - Develop Mobile Apps with C# and Azure
                                                         | |
| xamarinhq/app-myshoppe 
                                                            Cross-platform Xamarin.Forms sample for managing stores.
                                                         | |
| ffMathy/Shapeshifter 
                                                            A clipboard manager for the 21st century.
                                                         | |
| Azure/azure-iot-remote-monitoring 
                                                            Azure IoT Remote Monitoring preconfigured solution
                                                         | |
| UiPath/Community.Activities 
                                                            Repository of Windows Workflow Foundation Activities for UiPath Community
                                                         | |
| mellowagain/Titan 
                                                            A free, advanced CS:GO report and commendation bot built with performance and ease-of-use in mind
                                                         | 
| Version | Downloads | Last Updated | 
|---|---|---|
| 2.6.68 | 334,155 | 12/20/2024 | 
| 2.6.65-rc.2 | 261 | 12/20/2024 | 
| 2.6.55-rc.1 | 270 | 12/20/2024 | 
| 2.6.13-beta | 35,868 | 12/25/2021 | 
| 2.6.7-beta | 844 | 10/1/2021 | 
| 2.5.51 | 5,176,913 | 12/29/2021 | 
| 2.5.42 | 599,578 | 7/5/2021 | 
| 2.5.5-beta | 24,551 | 9/25/2020 | 
| 2.4.22 | 2,696,962 | 3/26/2019 | 
| 2.4.18 | 42,638,696 | 10/31/2017 | 
| 2.4.17 | 8,501 | 10/29/2017 | 
| 2.4.15 | 2,973,599 | 3/15/2017 | 
| 2.4.15-g8377954d86 | 7,979 | 3/15/2017 | 
| 2.4.13 | 304,032 | 3/5/2017 | 
| 2.4.10 | 14,329 | 2/25/2017 | 
| 2.4.9 | 32,658 | 2/21/2017 | 
| 2.4.7 | 11,513 | 2/17/2017 | 
| 2.3.7 | 960,077 | 8/14/2016 | 
| 2.3.5 | 60,637 | 7/30/2016 | 
| 2.2.8 | 3,687,005 | 10/10/2015 | 
| 2.2.5 | 9,331 | 10/8/2015 | 
| 2.2.4 | 9,570 | 10/6/2015 | 
| 2.0.6.15003 | 1,171,983 | 1/4/2015 | 
| 2.0.5.14286 | 47,064 | 10/14/2014 | 
| 2.0.4.14103 | 246,530 | 4/14/2014 | 
| 2.0.3.13323 | 277,365 | 11/19/2013 | 
| 2.0.2.13022 | 808,022 | 1/22/2013 | 
| 2.0.1.12362 | 13,771 | 12/27/2012 | 
| 2.0.0.12319 | 85,279 | 11/15/2012 | 
| 1.0.0.12259 | 12,527 | 9/15/2012 |