Undefined.Verify 3.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package Undefined.Verify --version 3.0.3                
NuGet\Install-Package Undefined.Verify -Version 3.0.3                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Undefined.Verify" Version="3.0.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Undefined.Verify --version 3.0.3                
#r "nuget: Undefined.Verify, 3.0.3"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Undefined.Verify as a Cake Addin
#addin nuget:?package=Undefined.Verify&version=3.0.3

// Install Undefined.Verify as a Cake Tool
#tool nuget:?package=Undefined.Verify&version=3.0.3                

Example:

    public const int ARGUMENT_VALUE = 10;

    public void ExampleArgument(IReadOnlyList<int>? list)
    {
        Verify.NotNull(list); //List is not null
        Verify.Argument(list!.Contains(ARGUMENT_VALUE), "Nope"); //List contains our value
        //something...
    }

There are some results of using it:

    ExampleArgument(null); //NullReferenceException
    ExampleArgument([1, 5, -28]); //ArgumentNotPassedException
    ExampleArgument([-5, 0, 24, ARGUMENT_VALUE]); //OK

Also, many auxiliary methods:

    public const string EQUALS_VALUE = "Hello!";

    public void ExampleRange(double value)
    {
        Verify.Range(value, 1.5, 3);
        //something...
    }
    public void ExampleEquals(string other)
    {
        //Next 2 lines are the same
        Verify.Equals(other, EQUALS_VALUE, "You are not friendly :(");
        other.VerifyEquals(EQUALS_VALUE, "I was offended");
        //again something...
    }  
    public string ExampleArray(string[] array, int i)
    {
        //Check if the index is not out of an array length
        array.VerifyArray(i);
        return array[i];
    }
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  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 is compatible.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • No dependencies.
  • .NETStandard 2.1

    • No dependencies.
  • net6.0

    • No dependencies.
  • net7.0

    • No dependencies.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Undefined.Verify:

Package Downloads
Undefined.Serializer

Fast and low-level util for objects serialization/deserialization in/from bytes.

Undefined.Networking

Beautiful and very useful client-server API

Undefined.Plugins

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.3.0 73 1/18/2025
3.2.1 118 11/6/2024
3.1.1 99 10/29/2024
3.1.0 110 10/29/2024
3.0.4 110 10/26/2024
3.0.3 90 10/26/2024
3.0.2 92 10/26/2024
3.0.1 289 8/18/2024
3.0.0 129 8/18/2024
2.0.0 224 6/1/2024
1.0.4 187 5/26/2024
1.0.3 123 5/26/2024
1.0.2 112 5/26/2024
1.0.1 120 5/19/2024
1.0.0 174 3/10/2024