public WeakDelegateHandle(Action <TValue> del) { if (IsClosure(del)) { throw new InvalidOperationException(); } _delTarget = new DelegateTarget <TValue>(del); _methodInfo = del.Method; }
public Closure(object hook, Action <TValue> del) { _hook = new DelegateTarget <TValue>(hook); _closureAction = del; }