InspectorValuePropertyInfo<TOwner, TValue>

Contains meta-data information about a field or property-backed property in the inspector.

namespace Sirenix.OdinInspector.Editor
{
public class InspectorValuePropertyInfo<TOwner, TValue> : InspectorPropertyInfo, IValueGetterSetter<TOwner, TValue>
}

Requirements

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector
Version: 1.0.6.1

Constructors

Definition Description
InspectorValuePropertyInfo(FieldInfo, SerializationBackend, bool) Initializes a new instance of the InspectorValuePropertyInfo<TOwner, TValue> class.
InspectorValuePropertyInfo(PropertyInfo, SerializationBackend, bool) Initializes a new instance of the InspectorValuePropertyInfo<TOwner, TValue> class.

Methods

Return Type Definition Description
Object GetValue(Object) Gets the value of this property from the given owner.
TValue GetValue(ref TOwner) Gets the value of this property from the given owner.
void SetValue(Object, Object) Sets the value of this property on the given owner.
void SetValue(ref TOwner, TValue) Sets the value of this property on the given owner.
bool TryConvertToGetterSetter<TOwner2, TValue2>(ref IValueGetterSetter<TOwner2, TValue2>)

Tries to convert this property to a strongly typed IValueGetterSetter<TOwner, TValue>.

A polymorphic alias AliasGetterSetter<TOwner, TValue, TPropertyOwner, TPropertyValue> will be created if necessary.