示例#1
0
 public IEnumerable <IEvent> GetEvents(Predicate <IUnresolvedEvent> filter = null, GetMemberOptions options = GetMemberOptions.None)
 {
     if ((options & GetMemberOptions.IgnoreInheritedMembers) == GetMemberOptions.IgnoreInheritedMembers)
     {
         return(EmptyList <IEvent> .Instance);
     }
     else
     {
         return(GetMembersHelper.GetEvents(this, FilterNonStatic(filter), options));
     }
 }
示例#2
0
 public virtual IEnumerable <IEvent> GetEvents(Predicate <IUnresolvedEvent> filter = null, GetMemberOptions options = GetMemberOptions.None)
 {
     if ((options & GetMemberOptions.IgnoreInheritedMembers) == GetMemberOptions.IgnoreInheritedMembers)
     {
         return(GetFilteredNonMethods <IUnresolvedEvent, IEvent>(filter));
     }
     else
     {
         return(GetMembersHelper.GetEvents(this, filter, options));
     }
 }