Delegate PropertyValidationDelegate<TValue>
A delegate that can be passed to a TrySetValue<TValue>(TValue, Func<TValue, (Boolean IsValid, IEnumerable<Object> ErrorMessages)>, ref TValue, String) and overload to provide a custom validation method.
Namespace: BionicCode.Utilities.Net
Assembly: BionicCode.Utilities.Net.Common.dll
Syntax
public delegate PropertyValidationResult PropertyValidationDelegate<TValue>(TValue propertyValue);
Parameters
| Type | Name | Description |
|---|---|---|
| TValue | propertyValue | The value to validate. |
Returns
| Type | Description |
|---|---|
| PropertyValidationResult | The validation result. |
Type Parameters
| Name | Description |
|---|---|
| TValue | The type of the value to validate. |