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

◆ GetCustomAttributes() [4/4]

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

Definition at line 37 of file PseudoCustomAttribute.cs.

38 {
39 bool flag = caType == typeof(object) || caType == typeof(Attribute);
40 if (flag || s_pca.Contains(caType))
41 {
42 if ((flag || caType == typeof(SerializableAttribute)) && (type.Attributes & TypeAttributes.Serializable) != 0)
43 {
44 pcas.Add(new SerializableAttribute());
45 }
46 if ((flag || caType == typeof(ComImportAttribute)) && (type.Attributes & TypeAttributes.Import) != 0)
47 {
49 }
50 }
51 }
void Add(TKey key, TValue value)
static readonly HashSet< RuntimeType > s_pca

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

Referenced by System.Reflection.CustomAttribute.GetCustomAttributes(), System.Reflection.CustomAttribute.GetCustomAttributes(), System.Reflection.CustomAttribute.GetCustomAttributes(), System.Reflection.CustomAttribute.GetCustomAttributes(), System.Reflection.RuntimeCustomAttributeData.GetCustomAttributesInternal(), System.Reflection.RuntimeCustomAttributeData.GetCustomAttributesInternal(), System.Reflection.RuntimeCustomAttributeData.GetCustomAttributesInternal(), and System.Reflection.RuntimeCustomAttributeData.GetCustomAttributesInternal().