Version 2.1.0.0

AttributeValidator<TAttribute, TValue> class

Namespace: Sirenix.OdinInspector.Editor.Validation
Assembly: Sirenix.OdinInspector.Editor
public abstract class AttributeValidator<TAttribute, TValue> : AttributeValidator<TAttribute>, IAttributeValidator where TAttribute : Attribute
Inheritance

Type Parameters

TAttribute

TValue

Constructors

AttributeValidator()
protected AttributeValidator()

Methods

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

TValue memberValue

System.Reflection.MemberInfo member

ValidationResult result

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

System.Object memberValue

System.Reflection.MemberInfo member

ValidationResult result

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.