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.3.3.0 (1.3.18.0209)
Syntax public static void ShouldBeTrue<T>(
Func<T, bool> checkFunc,
T argument,
string formattedError
)
Public Shared Sub ShouldBeTrue(Of T) (
checkFunc As Func(Of T, Boolean),
argument As T,
formattedError As String
)
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