Class Ensure.Argument
- Namespace
- Dynamicweb.Core
- Assembly
- Dynamicweb.Core.dll
Argument-specific ensure methods
- Inheritance
-
Ensure.
Argument
- Inherited Members
Methods
Is(bool, string)
Ensures given condition is true
Parameters
Exceptions
- Argument
Exception Thrown if
condition
is false
IsNot(bool, string)
Ensures given condition is false
Parameters
Exceptions
- Argument
Exception Thrown if
condition
is true
NotNull(object?, string)
Ensures given value is not null
Parameters
Exceptions
- Argument
Null Exception Thrown if
value
is null
NotNullOrEmpty(string?, string)
Ensures the given string value is not null or empty
Parameters
value
stringValue to test for null or empty
parameterName
stringName of the parameter in the method
Exceptions
- Argument
Exception Thrown if
value
is null or empty string