PrcaArgumentChecks Class

Summary

Common runtime checks that throw System.ArgumentException upon failure.
Assembly
Cake.Prca.dll
Namespace
Cake.Prca
Base Types
  • object
graph TD Base0["object"]-->Type Type["PrcaArgumentChecks"] class Type type-node

Syntax

public static class PrcaArgumentChecks

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
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