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()); }
public override MethodInfo GetSetMethod(bool nonPublic) { if (!Associates.IncludeAccessor((MethodInfo)this.m_setterMethod, nonPublic)) { return((MethodInfo)null); } return((MethodInfo)this.m_setterMethod); }
public override MethodInfo GetAddMethod(bool nonPublic) { if (!Associates.IncludeAccessor(this.m_addMethod, nonPublic)) { return(null); } return(this.m_addMethod); }
public override MethodInfo GetGetMethod(bool nonPublic) { if (!Associates.IncludeAccessor(m_getterMethod, nonPublic)) { return(null); } return(m_getterMethod); }
public override RuntimeMethodInfo?GetSetMethod(bool nonPublic) { if (!Associates.IncludeAccessor(m_setterMethod, nonPublic)) { return(null); } return(m_setterMethod); }
public override MethodInfo?GetRaiseMethod(bool nonPublic) { if (!Associates.IncludeAccessor(m_raiseMethod, nonPublic)) { return(null); } return(m_raiseMethod); }
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[]); }
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()); }
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()); }
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()); }