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

◆ GetIndexParametersNoCopy()

ParameterInfo[] System.Reflection.RuntimePropertyInfo.GetIndexParametersNoCopy ( )
inlinepackage

Definition at line 247 of file RuntimePropertyInfo.cs.

248 {
249 if (m_parameters == null)
250 {
251 int num = 0;
252 ParameterInfo[] array = null;
253 RuntimeMethodInfo getMethod = GetGetMethod(nonPublic: true);
254 if (getMethod != null)
255 {
256 array = getMethod.GetParametersNoCopy();
257 num = array.Length;
258 }
259 else
260 {
262 if (getMethod != null)
263 {
264 array = getMethod.GetParametersNoCopy();
265 num = array.Length - 1;
266 }
267 }
268 ParameterInfo[] array2 = ((num != 0) ? new ParameterInfo[num] : Array.Empty<ParameterInfo>());
269 for (int i = 0; i < array2.Length; i++)
270 {
271 array2[i] = new RuntimeParameterInfo((RuntimeParameterInfo)array[i], this);
272 }
274 }
275 return m_parameters;
276 }

References System.array, System.Reflection.PropertyInfo.GetGetMethod(), System.Reflection.PropertyInfo.GetSetMethod(), and System.Reflection.RuntimePropertyInfo.m_parameters.

Referenced by System.Reflection.RuntimePropertyInfo.GetIndexParameters().