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;
}