在 C# 中,对应 C++ 结构体中的 int aResStateMsg[8],可以使用 int 类型的数组来表示。在 C# 结构体中,可以使用以下声明:

public struct MyStruct
{
    public int[] aResStateMsg;
}

这样就可以在 C# 中使用 int 类型的数组来表示 C++ 结构体中的 int aResStateMsg[8]。

C++ 结构体 int aResStateMsg[8] 在 C# 中的对应类型

原文地址: https://www.cveoy.top/t/topic/qvNr 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录