CliContract Interface
Namespace: DensoCreate.Cli.Framework
Description
Provides validation methods for pre- and post-conditions.
Method
Name | Description |
---|---|
Fail | Unconditionally throws an exception. |
Requires | Checks that the condition expression is true. If it is not true, throws an exception. |
ThrowIfFalse | Throws an exception if the condition expression evaluates to false. |
ThrowIfNotNull | Checks that a value is null. |
ThrowIfNull | Checks that a value is not null. If it is null, an exception is thrown. |
ThrowIfNullOrEmpty | Checks that a value is not null or an empty string. |
ThrowIfTrue | Checks that the condition expression is false. If it is not false, an exception is thrown. |
ThrowIfTypeIsNot | Checks that the value is an instance of a specific class. |