private void CtorSecureVirtualDispatch(Object target, IntPtr methodPtr, IntPtr shuffleThunk, IntPtr callThunk, IntPtr creatorMethod)
        {
            MulticastDelegate realDelegate = Delegate.InternalAllocLike(this);

            realDelegate.CtorVirtualDispatch(target, methodPtr, shuffleThunk);
            this._invocationList  = realDelegate;
            this._target          = this;
            this._methodPtr       = callThunk;
            this._methodPtrAux    = creatorMethod;
            this._invocationCount = GetInvokeMethod();
        }
Пример #2
0
        private void CtorSecureVirtualDispatch(object target, IntPtr methodPtr, IntPtr shuffleThunk, IntPtr callThunk, IntPtr assembly)
        {
            MulticastDelegate delegate2 = Delegate.InternalAlloc(Type.GetTypeHandle(this));

            delegate2.CtorVirtualDispatch(target, methodPtr, shuffleThunk);
            this._invocationList  = delegate2;
            base._target          = this;
            base._methodPtr       = callThunk;
            base._methodPtrAux    = assembly;
            this._invocationCount = base.GetInvokeMethod();
        }