public IEnumerable <IEvent> GetEvents(Predicate <IUnresolvedEvent> filter = null, GetMemberOptions options = GetMemberOptions.None) { if ((options & GetMemberOptions.ReturnMemberDefinitions) == GetMemberOptions.ReturnMemberDefinitions) { return(genericType.GetEvents(filter, options)); } else { return(GetMembersHelper.GetEvents(this, filter, options)); } }
public override IEnumerable <IEvent> GetEvents(ITypeResolveContext context, Predicate <IEvent> filter, GetMemberOptions options) { return(GetMembersHelper.GetEvents(this, context, FilterNonStatic(filter), options)); }
public override IEnumerable <IEvent> GetEvents(Predicate <IUnresolvedEvent> filter, GetMemberOptions options) { return(GetMembersHelper.GetEvents(this, FilterNonStatic(filter), options)); }
public IEnumerable <IEvent> GetEvents(Predicate <IEvent> filter = null, GetMemberOptions options = GetMemberOptions.None) => (options & GetMemberOptions.IgnoreInheritedMembers) != 0 ? this.Events.Where(e => filter?.Invoke(e) ?? true) : GetMembersHelper.GetEvents(this, filter, options);