Esempio n. 1
0
 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));
     }
 }
Esempio n. 2
0
 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));
     }
 }
Esempio n. 3
0
 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));
     }
 }
Esempio n. 4
0
 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));
     }
 }
Esempio n. 5
0
 public override IEnumerable <IProperty> GetProperties(Predicate <IUnresolvedProperty> filter, GetMemberOptions options)
 {
     return(GetMembersHelper.GetProperties(this, FilterNonStatic(filter), options));
 }
Esempio n. 6
0
 public override IEnumerable <IMethod> GetMethods(IList <IType> typeArguments, Predicate <IUnresolvedMethod> filter, GetMemberOptions options)
 {
     return(GetMembersHelper.GetMethods(this, typeArguments, filter, options));
 }
Esempio n. 7
0
 public override IEnumerable <IMember> GetMembers(ITypeResolveContext context, Predicate <IMember> filter, GetMemberOptions options)
 {
     return(GetMembersHelper.GetMembers(this, context, FilterNonStatic(filter), options));
 }
Esempio n. 8
0
 public override IEnumerable <IMember> GetMembers(Predicate <IMember> filter, GetMemberOptions options)
 {
     return(GetMembersHelper.GetMembers(this, FilterNonStatic(filter), options));
 }
Esempio n. 9
0
        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);
Esempio n. 10
0
 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
Esempio n. 11
0
		public override IEnumerable<IMethod> GetMethods(IReadOnlyList<IType> typeArguments, Predicate<IMethod> filter, GetMemberOptions options)
		{
			return GetMembersHelper.GetMethods(this, typeArguments, filter, options);
		}
Esempio n. 12
0
 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);
Esempio n. 13
0
 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);
Esempio n. 14
0
 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);
Esempio n. 15
0
 public override IEnumerable <IEvent> GetEvents(Predicate <IUnresolvedEvent> filter, GetMemberOptions options)
 {
     return(GetMembersHelper.GetEvents(this, FilterNonStatic(filter), options));
 }
Esempio n. 16
0
 public override IEnumerable <IMethod> GetAccessors(Predicate <IUnresolvedMethod> filter, GetMemberOptions options)
 {
     return(GetMembersHelper.GetAccessors(this, FilterNonStatic(filter), options));
 }
Esempio n. 17
0
 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);