Version 2.1.0.0

ValueValidator<TValue> class

Namespace: Sirenix.OdinInspector.Editor.Validation
Assembly: Sirenix.OdinInspector.Editor
public abstract class ValueValidator<TValue> : Validator
Inheritance
  • System.Object
  • Validator
  • ValueValidator<TValue>

Type Parameters

TValue

Constructors

ValueValidator()
protected ValueValidator()

Methods

CanValidateMember(MemberInfo, Type)
public override sealed bool CanValidateMember(MemberInfo member, Type memberValueType)
Parameters
System.Reflection.MemberInfo member

System.Type memberValueType

Returns
System.Boolean

CanValidateMembers()
public override sealed bool CanValidateMembers()
Returns
System.Boolean

CanValidateValues()
public override sealed bool CanValidateValues()
Returns
System.Boolean

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

System.Type memberValueType

RunMemberValidation(Object, MemberInfo, Object, Object, ref ValidationResult)
public override sealed void RunMemberValidation(object parentInstance, MemberInfo member, object memberValue, Object root, ref ValidationResult result)
Parameters
System.Object parentInstance

System.Reflection.MemberInfo member

System.Object memberValue

UnityEngine.Object root

ValidationResult result

RunValueValidation(Object, Object, ref ValidationResult)
public override sealed void RunValueValidation(object value, Object root, ref ValidationResult result)
Parameters
System.Object value

UnityEngine.Object root

ValidationResult result

Validate(TValue, ValidationResult)
protected abstract void Validate(TValue value, ValidationResult result)
Parameters
TValue value

ValidationResult result