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

◆ GetCustomAttributesInternal() [7/9]

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

Definition at line 143 of file RuntimeCustomAttributeData.cs.

144 {
145 RuntimeType.ListBuilder<Attribute> pcas = default(RuntimeType.ListBuilder<Attribute>);
146 IList<CustomAttributeData> customAttributes = GetCustomAttributes(target.GetRuntimeModule(), target.MetadataToken);
147 PseudoCustomAttribute.GetCustomAttributes(target, (RuntimeType)typeof(object), ref pcas);
148 if (pcas.Count <= 0)
149 {
150 return customAttributes;
151 }
153 }
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.RuntimeParameterInfo.GetRuntimeModule(), and System.Reflection.RuntimeParameterInfo.MetadataToken.