奇怪的问题,关于Int32,和int
I本人以为Int32是struct,int是整型,为啥还说这两种是一回事情呢??
类型都不一样嘛,虽然都是值类型。
[解决办法]
C#源码
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace AboutInt{ class Program { static void Main(string[] args) { int a = 0; System.Int32 b = 0; int c = new int(); System.Int32 d = new System.Int32(); } }}
[解决办法]
Reflcetor也会"骗"你的眼睛的,要看这个问题还是要去到IL上看.
举个例子,就明白了:
有一段原始的C#代码:
static void Main(string[] args) { int i = 0; Int32 j = 0; i = i + j; }
[解决办法]