/// <summary> /// Constructs a new reflective parent Accessor for the provided object. /// </summary> /// <param name="parent">Object to provide Property Access.</param> public ParentAccessor(IParentAccessorAcceptor parent) { this.parent = new WeakReference <IParentAccessorAcceptor>(parent); typeinfo = parent.GetType(); actions = new Dictionary <string, Action>(); events = new Dictionary <string, Func <string[], Task <string> > >(); }
/// <summary> /// Constructs a new reflective parent Accessor for the provided object. /// </summary> /// <param name="parent">Object to provide Property Access.</param> public ParentAccessor(IParentAccessorAcceptor parent, DispatcherQueue queue) { _queue = queue; this.parent = new WeakReference <IParentAccessorAcceptor>(parent); typeinfo = parent.GetType(); actions = new Dictionary <string, Action>(); action_parameters = new Dictionary <string, Action <string[]> >(); events = new Dictionary <string, Func <string[], Task <string> > >(); }