System.ComponentModel.ReflectEventDescriptor.ReflectEventDescriptor C# (CSharp) Method

ReflectEventDescriptor() public method

This constructor takes an existing ReflectEventDescriptor and modifies it by merging in the passed-in attributes.
public ReflectEventDescriptor ( Type componentType, System.ComponentModel.EventDescriptor oldReflectEventDescriptor, Attribute attributes ) : System.Collections
componentType System.Type
oldReflectEventDescriptor System.ComponentModel.EventDescriptor
attributes System.Attribute
return System.Collections
        public ReflectEventDescriptor(Type componentType, EventDescriptor oldReflectEventDescriptor, Attribute[] attributes)
            : base(oldReflectEventDescriptor, attributes)
        {
            _componentClass = componentType;
            _type = oldReflectEventDescriptor.EventType;

            ReflectEventDescriptor desc = oldReflectEventDescriptor as ReflectEventDescriptor;
            if (desc != null)
            {
                _addMethod = desc._addMethod;
                _removeMethod = desc._removeMethod;
                _filledMethods = true;
            }
        }

Same methods

ReflectEventDescriptor::ReflectEventDescriptor ( Type componentClass, EventInfo eventInfo ) : System.Collections
ReflectEventDescriptor::ReflectEventDescriptor ( Type componentClass, string name, Type type, Attribute attributes ) : System.Collections