Validator
Description
- Derived from
-
EnumerableBase<ValidateMessage> abstract
IVersioned
A utility class for validating object graphs and reporting error and warning messages.
The IVersioned.Version property returns the message count ( CountMessages).
Public / Methods
Validate
Convenience method that calls IValidatable.Validate on the given validatable in object passing this as argument.
ValidateEntry
Convenience method that calls IValidatable.Validate on the given validatable in object passing this as argument, wrapping the call in BeginEntry and End.
ValidateIndex
Convenience method that calls IValidatable.Validate on the given validatable in object passing this as argument, wrapping the call in BeginEntry and End.
ValidateMember
Convenience method that calls IValidatable.Validate on the given validatable in object passing this as argument, wrapping the call in BeginEntry and End.
ValidateMemberList
Convenience method that calls BeginMember and End for name in and in between ValidateIndex for each list element.
Public / Attributes
CountErrors
Returns the number of error messages.
The count can be used to detect if a call to IValidatable.Validate has emitted error messages.
CountMessages
Returns the number of validation messages.
The count can be used to detect if a call to IValidatable.Validate has emitted any messages.
CountNotices
Returns the number of notice messages.
The count can be used to detect if a call to IValidatable.Validate has emitted notice messages.
- See also
CountWarnings
Returns the number of warning messages.
The count can be used to detect if a call to IValidatable.Validate has emitted warning messages.
- See also