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

◆ GetCustomAttributes() [2/4]

static void System.Reflection.PseudoCustomAttribute.GetCustomAttributes ( RuntimeMethodInfo method,
RuntimeType caType,
ref RuntimeType::ListBuilder< Attribute > pcas )
inlinestaticpackage

Definition at line 71 of file PseudoCustomAttribute.cs.

72 {
73 bool flag = caType == typeof(object) || caType == typeof(Attribute);
74 if (!flag && !s_pca.Contains(caType))
75 {
76 return;
77 }
78 if (flag || caType == typeof(DllImportAttribute))
79 {
81 if (dllImportCustomAttribute != null)
82 {
84 }
85 }
86 if ((flag || caType == typeof(PreserveSigAttribute)) && (method.GetMethodImplementationFlags() & MethodImplAttributes.PreserveSig) != 0)
87 {
89 }
90 }
void Add(TKey key, TValue value)
static DllImportAttribute GetDllImportCustomAttribute(RuntimeMethodInfo method)
static readonly HashSet< RuntimeType > s_pca

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Reflection.PseudoCustomAttribute.GetDllImportCustomAttribute(), and System.Reflection.PseudoCustomAttribute.s_pca.