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

◆ GetCustomAttributes() [8/10]

static object[] System.Reflection.CustomAttribute.GetCustomAttributes ( RuntimeParameterInfo parameter,
RuntimeType caType )
inlinestaticpackage

Definition at line 223 of file CustomAttribute.cs.

224 {
225 RuntimeType.ListBuilder<Attribute> pcas = default(RuntimeType.ListBuilder<Attribute>);
226 PseudoCustomAttribute.GetCustomAttributes(parameter, caType, ref pcas);
227 object[] customAttributes = GetCustomAttributes(parameter.GetRuntimeModule(), parameter.MetadataToken, pcas.Count, caType);
228 if (pcas.Count > 0)
229 {
230 pcas.CopyTo(customAttributes, customAttributes.Length - pcas.Count);
231 }
232 return customAttributes;
233 }
static object[] GetCustomAttributes(RuntimeType type, RuntimeType caType, bool inherit)

References System.Reflection.CustomAttribute.GetCustomAttributes(), System.Reflection.PseudoCustomAttribute.GetCustomAttributes(), System.Reflection.RuntimeParameterInfo.GetRuntimeModule(), and System.Reflection.RuntimeParameterInfo.MetadataToken.