Skip to content

Commit 0acb20f

Browse files
authored
Update StructLayoutAttribute.xml (dotnet#5325)
Fix remark about what `LayoutKind`s `StructLayoutAttribute.Pack` affects (only `Sequential)
1 parent 8f52227 commit 0acb20f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xml/System.Runtime.InteropServices/StructLayoutAttribute.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@
262262
<format type="text/markdown"><![CDATA[
263263
264264
## Remarks
265-
The <xref:System.Runtime.InteropServices.StructLayoutAttribute.Pack> field controls the alignment of a type's fields in memory. It affects both <xref:System.Runtime.InteropServices.LayoutKind.Sequential?displayProperty=nameWithType> and <xref:System.Runtime.InteropServices.LayoutKind.Explicit?displayProperty=nameWithType>. By default, the value is 0, indicating the default packing size for the current platform. The value of <xref:System.Runtime.InteropServices.StructLayoutAttribute.Pack> must be 0, 1, 2, 4, 8, 16, 32, 64, or 128:
265+
The <xref:System.Runtime.InteropServices.StructLayoutAttribute.Pack> field controls the alignment of a type's fields in memory. It affects <xref:System.Runtime.InteropServices.LayoutKind.Sequential?displayProperty=nameWithType>. By default, the value is 0, indicating the default packing size for the current platform. The value of <xref:System.Runtime.InteropServices.StructLayoutAttribute.Pack> must be 0, 1, 2, 4, 8, 16, 32, 64, or 128:
266266
267267
The fields of a type instance are aligned by using the following rules:
268268

0 commit comments

Comments
 (0)