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

◆ InternalGetCustomAttributes() [2/2]

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

Definition at line 15 of file Attribute.cs.

16 {
18 if (!inherit)
19 {
20 return array;
21 }
24 if (parentDefinition == null)
25 {
26 return array;
27 }
31 do
32 {
36 }
37 while (parentDefinition != null);
39 list.CopyTo(array2, 0);
40 return array2;
41 }
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
static Type[] GetIndexParameterTypes(PropertyInfo element)
Definition Attribute.cs:283
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.GetIndexParameterTypes(), System.Attribute.GetParentDefinition(), System.list, and System.type.

Referenced by System.Attribute.GetCustomAttributes(), and System.Attribute.GetCustomAttributes().