public EventDescriptorCollection GetEvents(Attribute[] attributes) { EventDescriptorCollection events = this.GetEvents(); if (attributes == null) { return(events); } return(events.Filter(attributes)); }
public EventDescriptorCollection GetEvents(Attribute[] attributes) { EventDescriptorCollection evs = GetEvents(); if (attributes == null) { return(evs); } else { return(evs.Filter(attributes)); } }