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

◆ GetFieldOffsetCustomAttribute()

static FieldOffsetAttribute System.Reflection.PseudoCustomAttribute.GetFieldOffsetCustomAttribute ( RuntimeFieldInfo field)
inlinestaticprivate

Definition at line 312 of file PseudoCustomAttribute.cs.

313 {
314 if ((object)field.DeclaringType != null && field.GetRuntimeModule().MetadataImport.GetFieldOffset(field.DeclaringType.MetadataToken, field.MetadataToken, out var offset))
315 {
316 return new FieldOffsetAttribute(offset);
317 }
318 return null;
319 }

References System.offset.

Referenced by System.Reflection.PseudoCustomAttribute.GetCustomAttributes(), and System.Reflection.PseudoCustomAttribute.IsDefined().