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

◆ InternalGetCustomAttributes() [1/2]

static Attribute[] System.Attribute.InternalGetCustomAttributes ( EventInfo element,
Type type,
bool inherit )
inlinestaticprivateinherited

Definition at line 86 of file Attribute.cs.

87 {
89 if (!inherit)
90 {
91 return array;
92 }
94 if (parentDefinition == null)
95 {
96 return array;
97 }
101 do
102 {
106 }
107 while (parentDefinition != null);
109 list.CopyTo(array2, 0);
110 return array2;
111 }
static Attribute[] CreateAttributeArrayHelper(Type elementType, int elementCount)
Definition Attribute.cs:333
static void CopyToAttributeList(List< Attribute > attributeList, Attribute[] attributes, Dictionary< Type, AttributeUsageAttribute > types)
Definition Attribute.cs:270
static Attribute[] GetCustomAttributes(MemberInfo element, Type attributeType)
Definition Attribute.cs:338
static PropertyInfo GetParentDefinition(PropertyInfo property, Type[] propertyParameters)
Definition Attribute.cs:71
static void AddAttributesToList(List< Attribute > attributeList, Attribute[] attributes, Dictionary< Type, AttributeUsageAttribute > types)
Definition Attribute.cs:298
object[] GetCustomAttributes(bool inherit)

References System.Attribute.AddAttributesToList(), System.array, System.Attribute.CopyToAttributeList(), System.Attribute.CreateAttributeArrayHelper(), System.Reflection.MemberInfo.GetCustomAttributes(), System.Attribute.GetCustomAttributes(), System.Attribute.GetParentDefinition(), System.list, and System.type.