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)); } }
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)); } }
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
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);