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

◆ GetCustomAttributesInternal() [9/9]

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

Definition at line 78 of file RuntimeCustomAttributeData.cs.

79 {
80 IList<CustomAttributeData> customAttributes = GetCustomAttributes(target.GetRuntimeModule(), target.MetadataToken);
81 RuntimeType.ListBuilder<Attribute> pcas = default(RuntimeType.ListBuilder<Attribute>);
82 PseudoCustomAttribute.GetCustomAttributes(target, (RuntimeType)typeof(object), ref pcas);
83 if (pcas.Count <= 0)
84 {
85 return customAttributes;
86 }
88 }
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.RuntimeType.GetRuntimeModule(), and System.RuntimeType.MetadataToken.

Referenced by System.Reflection.RuntimeAssembly.GetCustomAttributesData(), System.Reflection.RuntimeConstructorInfo.GetCustomAttributesData(), System.Reflection.RuntimeEventInfo.GetCustomAttributesData(), System.Reflection.RuntimeFieldInfo.GetCustomAttributesData(), System.Reflection.RuntimeMethodInfo.GetCustomAttributesData(), System.Reflection.RuntimeModule.GetCustomAttributesData(), System.Reflection.RuntimeParameterInfo.GetCustomAttributesData(), System.Reflection.RuntimePropertyInfo.GetCustomAttributesData(), and System.RuntimeType.GetCustomAttributesData().