public IEnumerable <IEvent> GetEvents(Predicate <IEvent> filter = null, GetMemberOptions options = GetMemberOptions.None) { if ((options & GetMemberOptions.IgnoreInheritedMembers) == GetMemberOptions.IgnoreInheritedMembers) { return(EmptyList <IEvent> .Instance); } else { return(GetMembersHelper.GetEvents(this, FilterNonStatic(filter), options)); } }
public IEnumerable <IEvent> GetEvents(Predicate <IEvent> filter = null, GetMemberOptions options = GetMemberOptions.None) { if (Kind == TypeKind.Void) { return(EmptyList <IEvent> .Instance); } if ((options & GetMemberOptions.IgnoreInheritedMembers) == GetMemberOptions.IgnoreInheritedMembers) { return(GetFiltered(this.Events, filter)); } else { return(GetMembersHelper.GetEvents(this, filter, options)); } }