Validator
Description
- Derived from
-
EnumerableBase<IValidateMessage> 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
ValidateEntry
Convenience method that calls IValidatable.Validate on the given validatable in object, passing this
as argument and wrapping the call in BeginEntry and End.
ValidateIndex
Convenience method that calls IValidatable.Validate on the given validatable in object, passing this
as argument and wrapping the call in BeginIndex and End.
ValidateMember
Convenience method that calls IValidatable.Validate on the given validatable in object, passing this
as argument and wrapping the call in BeginMember and End.
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 some messages.
CountWarning
Returns the number of warning messages.
The count can be used to detect if a call to IValidatable.Validate has emitted warning messages.