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

◆ GetCustomAttributesInternal() [4/9]

static IList< CustomAttributeData > System.Reflection.RuntimeCustomAttributeData.GetCustomAttributesInternal ( RuntimeFieldInfo target)
inlinestaticpackage

Definition at line 90 of file RuntimeCustomAttributeData.cs.

91 {
92 IList<CustomAttributeData> customAttributes = GetCustomAttributes(target.GetRuntimeModule(), target.MetadataToken);
93 RuntimeType.ListBuilder<Attribute> pcas = default(RuntimeType.ListBuilder<Attribute>);
94 PseudoCustomAttribute.GetCustomAttributes(target, (RuntimeType)typeof(object), ref pcas);
95 if (pcas.Count <= 0)
96 {
97 return customAttributes;
98 }
100 }
static IList< CustomAttributeData > GetCombinedList(IList< CustomAttributeData > customAttributes, ref RuntimeType.ListBuilder< Attribute > pseudoAttributes)
static IList< CustomAttributeData > GetCustomAttributes(RuntimeModule module, int tkTarget)

References System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Reflection.RuntimeCustomAttributeData.GetCombinedList(), System.Reflection.RuntimeCustomAttributeData.GetCustomAttributes(), System.Reflection.PseudoCustomAttribute.GetCustomAttributes(), System.Reflection.RuntimeFieldInfo.GetRuntimeModule(), and System.Reflection.MemberInfo.MetadataToken.