This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Issues.
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 |
void |
Throws an exception if the specified parameter's value is negative.
static
|
| NotNegativeOrZero |
void |
Throws an exception if the specified parameter's value is negative or zero.
static
|
| NotNull |
void |
Throws an exception if the specified parameter's value is null.
static
|
| NotNullOrEmpty |
void |
Throws an exception if the specified parameter's value is null or empty.
static
|
| Not |
void |
Throws an exception if the specified parameter's value is null, empty or contains an empty element.
static
|
| Not |
void |
Throws an exception if the specified parameter's value is null, empty or contains an empty element.
static
|
| NotNullOrWhiteSpace |
void |
Throws an exception if the specified parameter's value is null, empty or consists only of white-space characters.
static
|
Extension Methods
| Name | Value | Summary |
|---|---|---|
| ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
| To |
string |
Returns the string value or a
Not set> markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|
