Class ValidatorWrapper<T>
Class that encapsulates an instance of IValidate<T>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Validation
Assembly: EPiServer.Framework.dll
Version: 8.11.0Syntax
public class ValidatorWrapper<T> : ValidatorWrapper
Type Parameters
Name | Description |
---|---|
T |
Constructors
ValidatorWrapper(IValidate<T>)
Initializes a new instance of the ValidatorWrapper<T> class.
Declaration
public ValidatorWrapper(IValidate<T> implementation)
Parameters
Type | Name | Description |
---|---|---|
IValidate<T> | implementation | The implementation. |
Properties
EncapsulatedValidator
Gets the encapsulated validator.
Declaration
public override object EncapsulatedValidator { get; }
Property Value
Type | Description |
---|---|
System.Object | The encapsulated validator. |
Overrides
TypeToValidate
Gets the type to validate.
Declaration
public override Type TypeToValidate { get; }
Property Value
Type | Description |
---|---|
System.Type | The type to validate. |
Overrides
ValidatorImplementation
Gets the validator implementation.
Declaration
public IValidate<T> ValidatorImplementation { get; }
Property Value
Type | Description |
---|---|
IValidate<T> | The validator implementation. |
Methods
Validate(Object)
Validates the specified instance.
Declaration
public override IEnumerable<ValidationError> Validate(object instance)
Parameters
Type | Name | Description |
---|---|---|
System.Object | instance | The instance. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ValidationError> |