Namespace: | Sirenix.OdinInspector.Editor |
Assembly: | Sirenix.OdinInspector.Editor |
public class GetterSetter<TOwner, TValue> : IValueGetterSetter<TOwner, TValue>, IValueGetterSetter
The type of the owner.
The type of the value.
public GetterSetter(ValueGetter<TOwner, TValue> getter, ValueSetter<TOwner, TValue> setter)
Sirenix.Utilities.ValueGetter<TOwner, TValue> | getter | The getter. |
Sirenix.Utilities.ValueSetter<TOwner, TValue> | setter | The setter. |
System.ArgumentNullException | getter |
public GetterSetter(Func<TValue> getter, Action<TValue> setter)
System.Func<TValue> | getter | The getter. |
System.Action<TValue> | setter | The setter. |
System.ArgumentNullException | getter |
public GetterSetter(MemberInfo memberInfo, bool isReadOnly)
System.Reflection.MemberInfo | memberInfo | The field member to represent. |
System.Boolean | isReadOnly | if set to |
public bool IsReadonly { get; }
public Type OwnerType { get; }
public Type ValueType { get; }
public TValue GetValue(ref TOwner owner)
TOwner | owner | The owner. |
TValue | The found value. |
System.ArgumentNullException | owner is null |
public object GetValue(object owner)
System.Object | owner | The weakly typed owner. |
System.Object | The found value. |
public void SetValue(ref TOwner owner, TValue value)
TOwner | owner | The owner. |
TValue | value | The value. |
public void SetValue(object owner, object value)
System.Object | owner | The owner. |
System.Object | value | The value. |