System.Reflection.RuntimePropertyInfo.GetAccessors C# (CSharp) Method

GetAccessors() public method

public GetAccessors ( bool nonPublic ) : System.Reflection.MethodInfo[]
nonPublic bool
return System.Reflection.MethodInfo[]
        public override MethodInfo[] GetAccessors(bool nonPublic) 
        {
            ArrayList accessorList = new ArrayList();

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

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

            if (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(typeof(MethodInfo)) as MethodInfo[];
        }