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

◆ IsDefined() [1/4]

static bool System.Reflection.PseudoCustomAttribute.IsDefined ( RuntimeFieldInfo field,
RuntimeType caType )
inlinestaticpackage

Definition at line 194 of file PseudoCustomAttribute.cs.

195 {
196 bool flag = caType == typeof(object) || caType == typeof(Attribute);
197 if (!flag && !s_pca.Contains(caType))
198 {
199 return false;
200 }
202 {
203 return true;
204 }
206 {
207 return true;
208 }
209 if ((flag || caType == typeof(NonSerializedAttribute)) && (field.Attributes & FieldAttributes.NotSerialized) != 0)
210 {
211 return true;
212 }
213 return false;
214 }
static FieldOffsetAttribute GetFieldOffsetCustomAttribute(RuntimeFieldInfo field)
static MarshalAsAttribute GetMarshalAsCustomAttribute(RuntimeParameterInfo parameter)
static readonly HashSet< RuntimeType > s_pca

References System.Reflection.PseudoCustomAttribute.GetFieldOffsetCustomAttribute(), System.Reflection.PseudoCustomAttribute.GetMarshalAsCustomAttribute(), and System.Reflection.PseudoCustomAttribute.s_pca.