9 [__DynamicallyInvokable]
16 [__DynamicallyInvokable]
19 [__DynamicallyInvokable]
27 internal static Attribute GetCustomAttribute(RuntimeFieldInfo field)
29 if (field.DeclaringType !=
null && field.GetRuntimeModule().MetadataImport.GetFieldOffset(field.DeclaringType.MetadataToken, field.MetadataToken, out
int offset))
37 internal static bool IsDefined(RuntimeFieldInfo field)
39 return GetCustomAttribute(field) !=
null;
44 [__DynamicallyInvokable]
FieldOffsetAttribute(int offset)
Initializes a new instance of the T:System.Runtime.InteropServices.FieldOffsetAttribute class with th...
Represents the base class for custom attributes.
int Value
Gets the offset from the beginning of the structure to the beginning of the field.
Indicates the physical position of fields within the unmanaged representation of a class or structure...
AttributeTargets
Specifies the application elements on which it is valid to apply an attribute.