Version 2.1.0.0

RequiredValidator class

Namespace: Sirenix.OdinInspector.Editor.Validation
Assembly: Sirenix.OdinInspector.Editor
public class RequiredValidator : AttributeValidator<RequiredAttribute>, IAttributeValidator
Inheritance

Constructors

RequiredValidator()
public RequiredValidator()

Methods

Initialize(MemberInfo, Type)
public override void Initialize(MemberInfo member, Type memberValueType)
Parameters
System.Reflection.MemberInfo member

System.Type memberValueType

Validate(Object, Object, MemberInfo, ValidationResult)
protected override void Validate(object parentInstance, object memberValue, MemberInfo member, ValidationResult result)
Parameters
System.Object parentInstance

System.Object memberValue

System.Reflection.MemberInfo member

ValidationResult result