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

◆ GetCustomAttributes() [4/10]

static object[] System.Reflection.CustomAttribute.GetCustomAttributes ( RuntimeFieldInfo field,
RuntimeType caType )
inlinestaticpackage

Definition at line 211 of file CustomAttribute.cs.

212 {
213 RuntimeType.ListBuilder<Attribute> pcas = default(RuntimeType.ListBuilder<Attribute>);
214 PseudoCustomAttribute.GetCustomAttributes(field, caType, ref pcas);
215 object[] customAttributes = GetCustomAttributes(field.GetRuntimeModule(), field.MetadataToken, pcas.Count, caType);
216 if (pcas.Count > 0)
217 {
218 pcas.CopyTo(customAttributes, customAttributes.Length - pcas.Count);
219 }
220 return customAttributes;
221 }
static object[] GetCustomAttributes(RuntimeType type, RuntimeType caType, bool inherit)

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