CliContract.ThrowIfTypeIsNot Method
Namespace: DensoCreate.Cli.Framework
Description
Checks for an instance of a specific class.
Argument
Name | Type | Description |
---|---|---|
value | object | Value to test. |
message | string | Message if the check detects a problem. (Optional) |
Return value
- void
Exception
Name | Exception class | Description |
---|---|---|
Assertion violation | CliInternalException | If value is null or not an instance of the specified type |