public IEnumerable <IField> GetFields(Predicate <IField> filter = null, GetMemberOptions options = GetMemberOptions.None) { if ((options & GetMemberOptions.ReturnMemberDefinitions) == GetMemberOptions.ReturnMemberDefinitions) { return(genericType.GetFields(filter, options)); } else { return(GetMembersHelper.GetFields(this, filter, options)); } }
public IEnumerable <IMethod> GetMethods(IReadOnlyList <IType> typeArguments, Predicate <IMethod> filter = null, GetMemberOptions options = GetMemberOptions.None) { if ((options & GetMemberOptions.ReturnMemberDefinitions) == GetMemberOptions.ReturnMemberDefinitions) { return(genericType.GetMethods(typeArguments, filter, options)); } else { return(GetMembersHelper.GetMethods(this, typeArguments, filter, options)); } }
public IEnumerable <IMethod> GetConstructors(Predicate <IMethod> filter = null, GetMemberOptions options = GetMemberOptions.IgnoreInheritedMembers) { if ((options & GetMemberOptions.ReturnMemberDefinitions) == GetMemberOptions.ReturnMemberDefinitions) { return(genericType.GetConstructors(filter, options)); } else { return(GetMembersHelper.GetConstructors(this, filter, options)); } }
public IEnumerable <IMethod> GetAccessors(Predicate <IUnresolvedMethod> filter = null, GetMemberOptions options = GetMemberOptions.None) { if ((options & GetMemberOptions.ReturnMemberDefinitions) == GetMemberOptions.ReturnMemberDefinitions) { return(genericType.GetAccessors(filter, options)); } else { return(GetMembersHelper.GetAccessors(this, filter, options)); } }
public override IEnumerable <IProperty> GetProperties(Predicate <IUnresolvedProperty> filter, GetMemberOptions options) { return(GetMembersHelper.GetProperties(this, FilterNonStatic(filter), options)); }
public override IEnumerable <IMethod> GetMethods(IList <IType> typeArguments, Predicate <IUnresolvedMethod> filter, GetMemberOptions options) { return(GetMembersHelper.GetMethods(this, typeArguments, filter, options)); }
public override IEnumerable <IMember> GetMembers(ITypeResolveContext context, Predicate <IMember> filter, GetMemberOptions options) { return(GetMembersHelper.GetMembers(this, context, FilterNonStatic(filter), options)); }
public override IEnumerable <IMember> GetMembers(Predicate <IMember> filter, GetMemberOptions options) { return(GetMembersHelper.GetMembers(this, FilterNonStatic(filter), options)); }
GetMembersHelper.GetNestedTypes(this, typeArguments, filter, options); // TODO generic types public IEnumerable <IProperty> GetProperties(Predicate <IProperty> filter = null, GetMemberOptions options = GetMemberOptions.None) => (options & GetMemberOptions.IgnoreInheritedMembers) != 0 ? Properties.Where(p => filter?.Invoke(p) != false) : GetMembersHelper.GetProperties(this, 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 override IEnumerable<IMethod> GetMethods(IReadOnlyList<IType> typeArguments, Predicate<IMethod> filter, GetMemberOptions options) { return GetMembersHelper.GetMethods(this, typeArguments, filter, options); }
public IEnumerable <IMethod> GetMethods(IReadOnlyList <IType> typeArguments, Predicate <IMethod> filter = null, GetMemberOptions options = GetMemberOptions.None) => typeArguments.Count == 0 ? GetMethods(filter, options) : GetMembersHelper.GetMethods(this, typeArguments, filter, options);
public IEnumerable <IMethod> GetMethods(Predicate <IMethod> filter = null, GetMemberOptions options = GetMemberOptions.None) => (options & GetMemberOptions.IgnoreInheritedMembers) != 0 ? this.Methods.Where(a => filter?.Invoke(a) ?? true) : GetMembersHelper.GetMethods(this, 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);
public override IEnumerable <IEvent> GetEvents(Predicate <IUnresolvedEvent> filter, GetMemberOptions options) { return(GetMembersHelper.GetEvents(this, FilterNonStatic(filter), options)); }
public override IEnumerable <IMethod> GetAccessors(Predicate <IUnresolvedMethod> filter, GetMemberOptions options) { return(GetMembersHelper.GetAccessors(this, FilterNonStatic(filter), options)); }
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);