Version 2.1.11

RangeValidator<T> class

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

Type Parameters

T

Constructors

RangeValidator()
public RangeValidator()

Methods

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

System.Type memberValueType

Returns
System.Boolean

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