コード例 #1
0
 public IEnumerable <IType> GetNestedTypes(IList <IType> typeArguments, Predicate <ITypeDefinition> filter = null, GetMemberOptions options = GetMemberOptions.None)
 {
     if ((options & GetMemberOptions.ReturnMemberDefinitions) == GetMemberOptions.ReturnMemberDefinitions)
     {
         return(genericType.GetNestedTypes(typeArguments, filter, options));
     }
     else
     {
         return(GetMembersHelper.GetNestedTypes(this, typeArguments, filter, options));
     }
 }
コード例 #2
0
 public IEnumerable <IType> GetNestedTypes(ITypeResolveContext context, Predicate <ITypeDefinition> filter = null, GetMemberOptions options = GetMemberOptions.None)
 {
     if ((options & GetMemberOptions.ReturnMemberDefinitions) == GetMemberOptions.ReturnMemberDefinitions)
     {
         return(genericType.GetNestedTypes(context, filter, options));
     }
     else
     {
         return(GetMembersHelper.GetNestedTypes(this, context, filter, options));
     }
 }
コード例 #3
0
ファイル: VirtualType.cs プロジェクト: exyi/coberec
 public IEnumerable <IType> GetNestedTypes(IReadOnlyList <IType> typeArguments, Predicate <ITypeDefinition> filter = null, GetMemberOptions options = GetMemberOptions.None) =>
 typeArguments.Count == 0 ? GetNestedTypes(filter, options) :
 GetMembersHelper.GetNestedTypes(this, typeArguments, filter, options);     // TODO generic types
コード例 #4
0
ファイル: VirtualType.cs プロジェクト: exyi/coberec
 public IEnumerable <IType> GetNestedTypes(Predicate <ITypeDefinition> filter = null, GetMemberOptions options = GetMemberOptions.None) =>
 (options & GetMemberOptions.IgnoreInheritedMembers) != 0 ?
 this.NestedTypes.Where(t => filter?.Invoke(t) ?? true) :
 GetMembersHelper.GetNestedTypes(this, filter, options);