Game.Reflection.DelegateAccessor`1
Assembly: Game
Namespace: Game.Reflection
Type: class public
Base: System.Object
Implements: Game.Reflection.ITypedValueAccessor<T>
, Game.Reflection.IValueAccessor
Code
public class DelegateAccessor<T> : Game.Reflection.ITypedValueAccessor<T>, Game.Reflection.IValueAccessor
{
private readonly System.Func<T> m_Getter;
private readonly System.Action<T> m_Setter;
public System.Type valueType { get; }
public DelegateAccessor`1(System.Func<T> getter, System.Action<T> setter);
public T GetTypedValue();
public virtual System.Object GetValue();
public System.Void SetTypedValue(T value);
public virtual System.Void SetValue(System.Object value);
}
Fields
private readonly System.Func<T> m_Getter
private readonly System.Func<T> m_Getter;
private readonly System.Action<T> m_Setter
private readonly System.Action<T> m_Setter;
Properties
public System.Type valueType { get }
public System.Type valueType { get; }
Constructors
public DelegateAccessor
1(System.Funcgetter, System.Action setter = null)`
public DelegateAccessor`1(System.Func<T> getter, System.Action<T> setter);
Methods
public GetTypedValue() : T
public T GetTypedValue();
public virtual GetValue() : System.Object
public virtual System.Object GetValue();
public SetTypedValue(T value) : System.Void
public System.Void SetTypedValue(T value);
public virtual SetValue(System.Object value) : System.Void
public virtual System.Void SetValue(System.Object value);