 | CovenantAssert Method |
Asserts that a condition is true.
Namespace:
System.Diagnostics.Contracts
Assembly:
Neon.Common (in Neon.Common.dll) Version: 2.10.0
Syntaxpublic static void Assert(
bool condition,
string message = null
)
Public Shared Sub Assert (
condition As Boolean,
Optional message As String = Nothing
)
public:
static void Assert(
bool condition,
String^ message = nullptr
)
static member Assert :
condition : bool *
?message : string
(* Defaults:
let _message = defaultArg message null
*)
-> unit
Parameters
- condition
- Type: SystemBoolean
The condition to be tested. - message (Optional)
- Type: SystemString
An optional message to be included in the exception thrown.
Exceptions
See Also