Version 2.1.11

PropertyRangeValidator<T> class

Namespace: Sirenix.OdinInspector.Editor.Validation
Assembly: Sirenix.OdinInspector.Editor
public class PropertyRangeValidator<T> : AttributeValidator<PropertyRangeAttribute, T>, IAttributeValidator where T : struct
Inheritance

Type Parameters

T

Constructors

PropertyRangeValidator()
public PropertyRangeValidator()

Methods

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

System.Type memberValueType

Returns
System.Boolean

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

System.Type memberValueType

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

T memberValue

System.Reflection.MemberInfo member

ValidationResult result