Method ArgumentIsTrue
ArgumentIsTrue(bool, string)
Checks if the given value is true.
Declaration
public static void ArgumentIsTrue(bool value, string paramName)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | value | |
| string | paramName |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | The |
ArgumentIsTrue(Expression<Func<bool>>)
Checks if the given expression is true.
Declaration
public static void ArgumentIsTrue(Expression<Func<bool>> expression)
Parameters
| Type | Name | Description |
|---|---|---|
| Expression<Func<bool>> | expression |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | The |