ArgCheckerAssertIsTrueTException 方法 |
Validate given [!:condition] is true, otherwise throw exception.
命名空间:
DSkin.Html.Core.Utils
程序集:
DSkin (在 DSkin.dll 中) 版本:16.6.3.22
语法public static void AssertIsTrue<TException>(
bool condition,
string message
)
where TException : new(), Exception
参数
- condition
- 类型:SystemBoolean
Condition to assert. - message
- 类型:SystemString
Exception message in-case of assert failure.
类型参数
- TException
- Exception type to throw.
参见