将整数声明为以下可能是最简单的任务:
int num = 12;
但是我想深入研究它。我们知道int(int32)是struct,它只有两个字段:
public const Int32 MaxValue = 2147483647;
public const Int32 MinValue = --2147483648;
这两个字段与当前值无关,也没有这样的事情
public Int32 currentValue; // no such a field inside int struct
因此,当我们尝试使用以下整数类型的内容时:
Console.WriteLine("The number is: {0}", num);
12的值如何取出?我的意思是12的值如何在内部存储在int32结构中?