Click or drag to resize
HelperCheckConditionT 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<T>(
	bool condition,
	Func<string> messageFunction
)
where T : new(), Exception

Parameters

condition
Type: SystemBoolean
The condition to check
messageFunction
Type: SystemFuncString
Function that will generate the message if the condition is false.

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:Bio.Util.Helper.CheckCondition``1(System.Boolean,System.Func{System.String})"]

Remarks
messageFunction will only be evaluated of condition is false. Use this version for messages that are costly to compute.
See Also