diff --git a/docs/csharp/misc/cs0282.md b/docs/csharp/misc/cs0282.md index 76a71935fda47..29b5d92df6f9e 100644 --- a/docs/csharp/misc/cs0282.md +++ b/docs/csharp/misc/cs0282.md @@ -42,3 +42,6 @@ partial struct A int j; } ``` + +> [!NOTE] +> If the struct layout does not matter, decorating the struct with `[StructLayout(LayoutKind.Auto)]` will express it,and suppress the warning