gpt4 book ai didi

C# 相当于 C union

转载 作者:太空狗 更新时间:2023-10-29 15:00:01 24 4
gpt4 key购买 nike

<分区>

Duplicate of C++ union in C#

是否有与 C union typedef 等效的 C#?在 C# 中,以下等价物是什么?

typedef union byte_array
{
struct{byte byte1; byte byte2; byte byte3; byte byte4;};
struct{int int1; int int2;};
};byte_array

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com