IncludeAccessor() static private method

static private IncludeAccessor ( MethodInfo associate, bool nonPublic ) : bool
associate MethodInfo
nonPublic bool
return bool
Ejemplo 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());
        }
Ejemplo 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);
 }
Ejemplo n.º 3
0
 public override MethodInfo GetAddMethod(bool nonPublic)
 {
     if (!Associates.IncludeAccessor(this.m_addMethod, nonPublic))
     {
         return(null);
     }
     return(this.m_addMethod);
 }
Ejemplo n.º 4
0
        public override MethodInfo GetGetMethod(bool nonPublic)
        {
            if (!Associates.IncludeAccessor(m_getterMethod, nonPublic))
            {
                return(null);
            }

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

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

            return(m_raiseMethod);
        }
Ejemplo 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[]);
        }
Ejemplo 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());
        }
Ejemplo 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());
        }
Ejemplo 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());
        }