Click or drag to resize
CoreUtilsValidateTValue Method (TValue, TValue, IValidatorTValue, Boolean, Boolean, String, ErrorContainer, Boolean, TValue)
Validates the specified value to validate.

Namespace:  SD.LLBLGen.Pro.Core
Assembly:  SD.LLBLGen.Pro.Core (in SD.LLBLGen.Pro.Core.dll) Version: 5.1.0.0 (5.1.0)
Syntax
public static bool Validate<TValue>(
	TValue valueToValidate,
	TValue originalValue,
	IValidator<TValue> validator,
	bool checkForDuplicates,
	bool throwOnError,
	string propertyName,
	ErrorContainer loggedErrors,
	bool isSoftError,
	out TValue correctValue
)

Parameters

valueToValidate
Type: TValue
The value to validate.
originalValue
Type: TValue
The original value.
validator
Type: SD.LLBLGen.Pro.CoreIValidatorTValue
The validator.
checkForDuplicates
Type: SystemBoolean
if set to true [check for duplicates].
throwOnError
Type: SystemBoolean
if set to true [throw on error].
propertyName
Type: SystemString
Name of the property.
loggedErrors
Type: SD.Tools.Algorithmia.GeneralDataStructuresErrorContainer
The logged errors.
isSoftError
Type: SystemBoolean
if set to the error is considered 'soft', which means it's cleared after it's been read.
correctValue
Type: TValue
The correct value.

Type Parameters

TValue
The type of the value.

Return Value

Type: Boolean
See Also