Click or drag to resize
HelperCheckCondition Method (Boolean, FuncString)
Confirms that a condition is true. Raise an exception if it is not.

Namespace: Bio.Util
Assembly: 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
)

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