日期:2014-05-16 浏览次数:20912 次
[StructLayout(LayoutKind.Explicit)] private struct UnionIntFloat // 其实就是Integer和Float都指向同一个内存 { [FieldOffset(0)] public int Integer; [FieldOffset(0)] public float Float; }