Esempio n. 1
0
        public ObservableMethodBase(INotifyExpression <T> target, MethodInfo method)
        {
            if (method == null)
            {
                throw new ArgumentNullException("method");
            }
            if (target == null)
            {
                throw new ArgumentNullException("target");
            }

            Target   = target;
            Method   = method;
            listener = new CollectionChangeListener <object>(this);
        }
Esempio n. 2
0
 public NotifyCollection()
 {
     Successors.Attached += (obj, e) => Attach();
     Successors.Detached += (obj, e) => Detach();
     listener             = new CollectionChangeListener <T>(this);
 }