IssuesArgumentChecks Class

Summary

Common runtime checks that throw System.ArgumentException upon failure.
Assembly
Cake.Issues.dll
Namespace
Cake.Issues
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["IssuesArgumentChecks"] class Type type-node

Syntax

public static class IssuesArgumentChecks

Methods

Name Value Summary
NotNegative(int, string) void
Throws an exception if the specified parameter's value is negative.
static
NotNegativeOrZero(int, string) void
Throws an exception if the specified parameter's value is negative or zero.
static
NotNull<T>(T, string) void
Throws an exception if the specified parameter's value is null.
static
NotNullOrEmpty<T>(IEnumerable<T>, string) void
Throws an exception if the specified parameter's value is null or empty.
static
NotNullOrEmptyElement<T>(IEnumerable<T>, string) void
Throws an exception if the specified parameter's value is null, empty or contains an empty element.
static
NotNullOrEmptyOrEmptyElement<T>(IEnumerable<T>, string) void
Throws an exception if the specified parameter's value is null, empty or contains an empty element.
static
NotNullOrWhiteSpace(string, string) void
Throws an exception if the specified parameter's value is null, empty or consists only of white-space characters.
static
GitHub