HelperCheckCondition Method (Boolean, String) |
Confirms that a condition is true. Raise an exception if it is not.
Namespace: Bio.UtilAssembly: Bio.Core (in Bio.Core.dll) Version: 2.0.0.1 (2.0.0.1)
Syntax public static void CheckCondition(
bool condition,
string message
)
Public Shared Sub CheckCondition (
condition As Boolean,
message As String
)
public:
static void CheckCondition(
bool condition,
String^ message
)
static member CheckCondition :
condition : bool *
message : string -> unit
Parameters
- condition
- Type: SystemBoolean
The condition to check - message
- Type: SystemString
A message for the exception
Remarks
Warning: The message with be evaluated even if the condition is true, so don't make it's calculation slow.
Avoid this with the "messageFunction" version.
See Also