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

DebugReflectEventDescriptor() public method

public DebugReflectEventDescriptor ( Type componentClass, string name, Type type, Attribute attributes ) : System.Diagnostics
componentClass System.Type
name string
type System.Type
attributes System.Attribute
return System.Diagnostics
        public DebugReflectEventDescriptor(Type componentClass, string name, Type type,
                                      Attribute[] attributes)
        : base(name, attributes) {
            if (componentClass == null) {
                throw new ArgumentException(SR.GetString(SR.InvalidNullArgument, "componentClass"));
            }
            if (type == null || !(typeof(Delegate)).IsAssignableFrom(type)) {
                throw new ArgumentException(SR.GetString(SR.ErrorInvalidEventType, name));
            }
            Debug.Assert(type.IsSubclassOf(typeof(Delegate)), "Not a valid ReflectEvent: " + componentClass.FullName + "." + name + " " + type.FullName);
            this.componentClass = componentClass;
            this.type = type;
        }

Same methods

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