Click or drag to resize
ArgumentVerifierShouldBeTrueT Method
Checks if the argument returns true with the func passed in. If not, it throws an ArgumentException with the error message specified.

Namespace: SD.Tools.Algorithmia.UtilityClasses
Assembly: SD.Tools.Algorithmia (in SD.Tools.Algorithmia.dll) Version: 1.2.0.0 (1.2.14.1118)
Syntax
public static void ShouldBeTrue<T>(
	Func<T, bool> checkFunc,
	T argument,
	string formattedError
)

Parameters

checkFunc
Type: SystemFuncT, Boolean
The check func.
argument
Type: T
The argument.
formattedError
Type: SystemString
The formatted error message.

Type Parameters

T
See Also