public bool SetAttribute(object instance, object value) { ReflectedEvent other = value as ReflectedEvent; if (other == null || other.dispatcher.Info != this.dispatcher.Info) { throw Ops.TypeError("read-only attribute"); } return(true); }
public object GetAttribute(object instance, object context) { if (instance != null) { EventDispatcher ed = GetDispatcher(instance); ReflectedEvent bound = new ReflectedEvent(ed, dispatchers, instance, clsOnly); return(bound); } else { return(this); } }