示例#1
0
 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));
     }
 }
示例#2
0
 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));
     }
 }