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.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.7.0.0 (5.7.0)
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