HelperCheckCondition Method (Boolean, FuncString) |
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,
Func<string> messageFunction
)
Public Shared Sub CheckCondition (
condition As Boolean,
messageFunction As Func(Of String)
)
public:
static void CheckCondition(
bool condition,
Func<String^>^ messageFunction
)
static member CheckCondition :
condition : bool *
messageFunction : Func<string> -> unit
Parameters
- condition
- Type: SystemBoolean
The condition to check - messageFunction
- Type: SystemFuncString
Function that will generate the message if the condition is false.
Remarks
messageFunction will only be evaluated of condition is false. Use this version for messages that are costly to compute.
See Also