Exemplo n.º 1
0
        public WeakDelegateHandle(Action <TValue> del)
        {
            if (IsClosure(del))
            {
                throw new InvalidOperationException();
            }

            _delTarget  = new DelegateTarget <TValue>(del);
            _methodInfo = del.Method;
        }
Exemplo n.º 2
0
 public Closure(object hook, Action <TValue> del)
 {
     _hook          = new DelegateTarget <TValue>(hook);
     _closureAction = del;
 }