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

ReflectEventDescriptor() public method

This is the main constructor for an ReflectEventDescriptor.
public ReflectEventDescriptor ( Type componentClass, string name, Type type, Attribute attributes ) : System.Collections
componentClass System.Type
name string
type System.Type
attributes System.Attribute
return System.Collections
        public ReflectEventDescriptor(Type componentClass, string name, Type type, Attribute[] attributes)
            : base(name, attributes)
        {
            if (componentClass == null)
            {
                throw new ArgumentException(SR.Format(SR.InvalidNullArgument, nameof(componentClass)));
            }
            if (type == null || !(typeof(Delegate)).IsAssignableFrom(type))
            {
                throw new ArgumentException(SR.Format(SR.ErrorInvalidEventType, name));
            }
            Debug.Assert(type.GetTypeInfo().IsSubclassOf(typeof(Delegate)), "Not a valid ReflectEvent: " + componentClass.FullName + "." + name + " " + type.FullName);
            _componentClass = componentClass;
            _type = type;
        }

Same methods

ReflectEventDescriptor::ReflectEventDescriptor ( Type componentType, System.ComponentModel.EventDescriptor oldReflectEventDescriptor, Attribute attributes ) : System.Collections
ReflectEventDescriptor::ReflectEventDescriptor ( Type componentClass, EventInfo eventInfo ) : System.Collections