Exemplo n.º 1
0
        protected override void OnCopy(MemberPointer obj)
        {
            EventPointer ep = obj as EventPointer;

            if (ep != null)
            {
                if (ep._parameterValues != null)
                {
                    _parameterValues = new object[ep._parameterValues.Length];
                    for (int i = 0; i < _parameterValues.Length; i++)
                    {
                        ICloneable ic = ep._parameterValues[i] as ICloneable;
                        if (ic != null)
                        {
                            _parameterValues[i] = ic.Clone();
                        }
                        else
                        {
                            _parameterValues[i] = ep._parameterValues[i];
                        }
                    }
                }
                ICloneable eic = ep.Info as ICloneable;
                if (eic != null)
                {
                    _eif = (EventInfo)eic.Clone();
                }
                else
                {
                    _eif = ep.Info;
                }
            }
        }
Exemplo n.º 2
0
        public override bool IsSameObjectRef(IObjectIdentity obj)
        {
            EventPointer ep = obj as EventPointer;

            if (ep != null)
            {
                if (base.IsSameObjectRef(obj))
                {
                    return(true);
                }
            }
            return(false);
        }