C# StructLayout 所在命名空间

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/quicmous/article/details/80790058

StructLayout 用于说明 C# struct 结构与 C 语言的布局一致性,该标示符所在命名空间:

using System.Runtime.InteropServices;

在 VS 编辑环境下,用鼠标指向 StructLayout ,会看到弹出式提示,遵循提示可以自动找到并添加该命名空间。

猜你喜欢

转载自blog.csdn.net/quicmous/article/details/80790058