IncludeAccessor() static private method

static private IncludeAccessor ( MethodInfo associate, bool nonPublic ) : bool
associate MethodInfo
nonPublic bool
return bool
Esempio n. 1
0
        public override MethodInfo[] GetAccessors(bool nonPublic)
        {
            List <MethodInfo> accessorList = new List <MethodInfo>();

            if (Associates.IncludeAccessor(m_getterMethod, nonPublic))
            {
                accessorList.Add(m_getterMethod);
            }

            if (Associates.IncludeAccessor(m_setterMethod, nonPublic))
            {
                accessorList.Add(m_setterMethod);
            }

            if ((object)m_otherMethod != null)
            {
                for (int i = 0; i < m_otherMethod.Length; i++)
                {
                    if (Associates.IncludeAccessor(m_otherMethod[i] as MethodInfo, nonPublic))
                    {
                        accessorList.Add(m_otherMethod[i]);
                    }
                }
            }
            return(accessorList.ToArray());
        }
Esempio n. 2
0
 public override MethodInfo GetSetMethod(bool nonPublic)
 {
     if (!Associates.IncludeAccessor((MethodInfo)this.m_setterMethod, nonPublic))
     {
         return((MethodInfo)null);
     }
     return((MethodInfo)this.m_setterMethod);
 }
Esempio n. 3
0
 public override MethodInfo GetAddMethod(bool nonPublic)
 {
     if (!Associates.IncludeAccessor(this.m_addMethod, nonPublic))
     {
         return(null);
     }
     return(this.m_addMethod);
 }
Esempio n. 4
0
        public override MethodInfo GetGetMethod(bool nonPublic)
        {
            if (!Associates.IncludeAccessor(m_getterMethod, nonPublic))
            {
                return(null);
            }

            return(m_getterMethod);
        }
Esempio n. 5
0
        public override RuntimeMethodInfo?GetSetMethod(bool nonPublic)
        {
            if (!Associates.IncludeAccessor(m_setterMethod, nonPublic))
            {
                return(null);
            }

            return(m_setterMethod);
        }
Esempio n. 6
0
        public override MethodInfo?GetRaiseMethod(bool nonPublic)
        {
            if (!Associates.IncludeAccessor(m_raiseMethod, nonPublic))
            {
                return(null);
            }

            return(m_raiseMethod);
        }
Esempio n. 7
0
        public override MethodInfo[] GetOtherMethods(bool nonPublic)
        {
            ArrayList list = new ArrayList();

            if (this.m_otherMethod == null)
            {
                return(new MethodInfo[0]);
            }
            for (int i = 0; i < this.m_otherMethod.Length; i++)
            {
                if (Associates.IncludeAccessor(this.m_otherMethod[i], nonPublic))
                {
                    list.Add(this.m_otherMethod[i]);
                }
            }
            return(list.ToArray(typeof(MethodInfo)) as MethodInfo[]);
        }
Esempio n. 8
0
        public override MethodInfo[] GetOtherMethods(bool nonPublic)
        {
            List <MethodInfo> methodInfoList = new List <MethodInfo>();

            if (this.m_otherMethod == null)
            {
                return(new MethodInfo[0]);
            }
            for (int index = 0; index < this.m_otherMethod.Length; ++index)
            {
                if (Associates.IncludeAccessor(this.m_otherMethod[index], nonPublic))
                {
                    methodInfoList.Add(this.m_otherMethod[index]);
                }
            }
            return(methodInfoList.ToArray());
        }
Esempio n. 9
0
        public override MethodInfo[] GetOtherMethods(bool nonPublic)
        {
            List <MethodInfo> ret = new List <MethodInfo>();

            if ((object)m_otherMethod == null)
            {
                return(new MethodInfo[0]);
            }

            for (int i = 0; i < m_otherMethod.Length; i++)
            {
                if (Associates.IncludeAccessor((MethodInfo)m_otherMethod[i], nonPublic))
                {
                    ret.Add(m_otherMethod[i]);
                }
            }

            return(ret.ToArray());
        }
Esempio n. 10
0
        public override MethodInfo[] GetAccessors(bool nonPublic)
        {
            List <MethodInfo> methodInfoList = new List <MethodInfo>();

            if (Associates.IncludeAccessor((MethodInfo)this.m_getterMethod, nonPublic))
            {
                methodInfoList.Add((MethodInfo)this.m_getterMethod);
            }
            if (Associates.IncludeAccessor((MethodInfo)this.m_setterMethod, nonPublic))
            {
                methodInfoList.Add((MethodInfo)this.m_setterMethod);
            }
            if (this.m_otherMethod != null)
            {
                for (int index = 0; index < this.m_otherMethod.Length; ++index)
                {
                    if (Associates.IncludeAccessor(this.m_otherMethod[index], nonPublic))
                    {
                        methodInfoList.Add(this.m_otherMethod[index]);
                    }
                }
            }
            return(methodInfoList.ToArray());
        }
        public override MethodInfo[] GetAccessors(bool nonPublic)
        {
            List <MethodInfo> list = new List <MethodInfo>();

            if (Associates.IncludeAccessor(this.m_getterMethod, nonPublic))
            {
                list.Add(this.m_getterMethod);
            }
            if (Associates.IncludeAccessor(this.m_setterMethod, nonPublic))
            {
                list.Add(this.m_setterMethod);
            }
            if (this.m_otherMethod != null)
            {
                for (int i = 0; i < this.m_otherMethod.Length; i++)
                {
                    if (Associates.IncludeAccessor(this.m_otherMethod[i], nonPublic))
                    {
                        list.Add(this.m_otherMethod[i]);
                    }
                }
            }
            return(list.ToArray());
        }