C# 实现Union联合体
下面是一个简单的C#实现Union联合体的例子:
using System;
using System.Runtime.InteropServices;
namespace UnionExample
{
[StructLayout(LayoutKind
using System;
using System.Runtime.InteropServices;
namespace UnionExample
{
[StructLayout(LayoutKind