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

ReflectEventDescriptor() public method

public ReflectEventDescriptor ( Type componentClass, EventInfo eventInfo ) : System.Collections
componentClass System.Type
eventInfo System.Reflection.EventInfo
return System.Collections
        public ReflectEventDescriptor(Type componentClass, EventInfo eventInfo)
            : base(eventInfo.Name, Array.Empty<Attribute>())
        {
            if (componentClass == null)
            {
                throw new ArgumentException(SR.Format(SR.InvalidNullArgument, nameof(componentClass)));
            }
            _componentClass = componentClass;
            _realEvent = eventInfo;
        }

Same methods

ReflectEventDescriptor::ReflectEventDescriptor ( Type componentType, System.ComponentModel.EventDescriptor oldReflectEventDescriptor, Attribute attributes ) : System.Collections
ReflectEventDescriptor::ReflectEventDescriptor ( Type componentClass, string name, Type type, Attribute attributes ) : System.Collections