C# 64位系统中类型所占空间大小

Boolean   8Byte

DateTime 8Byte

Decimal  16Byte

String  引用地址空间8Bypte

Int    4Bypte

类所占空间大小 (byte):各个filed的空间总和+16个字节系统开销(方法表指针和同步块索引),如果不足8的整数倍,自动补足。

原文地址:https://www.cnblogs.com/thaughtZhao/p/4432254.html