Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetAccessors() [2/2]

override MethodInfo[] System.Reflection.RuntimePropertyInfo.GetAccessors ( bool nonPublic)
inline

Definition at line 192 of file RuntimePropertyInfo.cs.

193 {
195 if (Associates.IncludeAccessor(m_getterMethod, nonPublic))
196 {
197 list.Add(m_getterMethod);
198 }
199 if (Associates.IncludeAccessor(m_setterMethod, nonPublic))
200 {
201 list.Add(m_setterMethod);
202 }
203 if (m_otherMethod != null)
204 {
205 for (int i = 0; i < m_otherMethod.Length; i++)
206 {
207 if (Associates.IncludeAccessor(m_otherMethod[i], nonPublic))
208 {
209 list.Add(m_otherMethod[i]);
210 }
211 }
212 }
213 return list.ToArray();
214 }

References System.Reflection.Associates.IncludeAccessor(), System.list, System.Reflection.RuntimePropertyInfo.m_getterMethod, System.Reflection.RuntimePropertyInfo.m_otherMethod, and System.Reflection.RuntimePropertyInfo.m_setterMethod.