用于获取 值类型 的字节大小。例如,可以如下所示检索 int 类型的大小:

 CopyCode image复制代码
int intSize = sizeof(int);

Expand 图像备注

Expand 图像示例

Expand 图像C# 语言规范

Expand image请参见