コード例 #1
0
 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));
     }
 }
コード例 #2
0
 public override IEnumerable <IEvent> GetEvents(ITypeResolveContext context, Predicate <IEvent> filter, GetMemberOptions options)
 {
     return(GetMembersHelper.GetEvents(this, context, FilterNonStatic(filter), options));
 }
コード例 #3
0
ファイル: IntersectionType.cs プロジェクト: theolivenbaum/h5
 public override IEnumerable <IEvent> GetEvents(Predicate <IUnresolvedEvent> filter, GetMemberOptions options)
 {
     return(GetMembersHelper.GetEvents(this, FilterNonStatic(filter), options));
 }
コード例 #4
0
ファイル: VirtualType.cs プロジェクト: exyi/coberec
 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);