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

◆ GetCustomAttributesInternal() [5/9]

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

Definition at line 102 of file RuntimeCustomAttributeData.cs.

103 {
104 IList<CustomAttributeData> customAttributes = GetCustomAttributes(target.GetRuntimeModule(), target.MetadataToken);
105 RuntimeType.ListBuilder<Attribute> pcas = default(RuntimeType.ListBuilder<Attribute>);
106 PseudoCustomAttribute.GetCustomAttributes(target, (RuntimeType)typeof(object), ref pcas);
107 if (pcas.Count <= 0)
108 {
109 return customAttributes;
110 }
112 }
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.RuntimeMethodInfo.GetRuntimeModule(), and System.Reflection.RuntimeMethodInfo.MetadataToken.