Exemple #1
0
        private void CtorSecureOpened(Object target, IntPtr methodPtr, IntPtr shuffleThunk, IntPtr callThunk, IntPtr creatorMethod)
        {
            MulticastDelegate realDelegate = Delegate.InternalAllocLike(this);

            realDelegate.CtorOpened(target, methodPtr, shuffleThunk);
            _invocationList    = realDelegate;
            this._target       = this;
            this._methodPtr    = callThunk;
            this._methodPtrAux = creatorMethod;
            _invocationCount   = GetInvokeMethod();
        }
        private void CtorSecureOpened(object target, IntPtr methodPtr, IntPtr shuffleThunk, IntPtr callThunk, IntPtr assembly)
        {
            MulticastDelegate delegate2 = Delegate.InternalAlloc(Type.GetTypeHandle(this));

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