GetterSetter<TOwner, TValue>

Responsible for getting and setting values on properties.

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

Requirements

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

See Also

Constructors

Definition Description
GetterSetter(Func<TValue>, Action<TValue>) Initializes a new instance of the GetterSetter<TOwner, TValue> class.
GetterSetter(MemberInfo, bool) Initializes a new instance of the GetterSetter<TOwner, TValue> class.
GetterSetter(ValueGetter<TOwner, TValue>, ValueSetter<TOwner, TValue>) Initializes a new instance of the GetterSetter<TOwner, TValue> class.

Properties

Return Type Definition Description
bool IsReadonly Whether the value is readonly.
Type OwnerType Gets the type of the owner.
Type ValueType Gets the type of the value.

Methods

Return Type Definition Description
Object GetValue(Object) Gets the value from a given weakly typed owner.
TValue GetValue(ref TOwner) Gets the value from a given owner.
void SetValue(Object, Object) Sets the value on a given owner.
void SetValue(ref TOwner, TValue) Sets the weakly typed value on a given weakly typed owner.