Name
FieldOffsetAttribute
Synopsis
This attribute controls the offset, in bytes, of a field.
Use it to match your .NET types to the layout of C and C++
structures exactly. This attribute can be used only within
classes that have the StructLayoutAttribute
attribute where LayoutKind.Explicit
was used.
Public NotInheritable Class FieldOffsetAttribute : Inherits Attribute ' Public Constructors Public Sub New( ByVal offset As Integer) ' Public Instance Properties Public ReadOnly Property Value As Integer End Class
Hierarchy
System.Object→System.Attribute→ FieldOffsetAttribute
Valid On
Field
Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.