C#中的数据类型和结构

cra*_*ver 1 c# struct types

我一直在使用"Int32", "String", and "Boolean"而不是"int", "string", "bool"在C#中使用一段时间,但我不知道为什么.为什么这很重要?哪个更好"?有什么不同?

我用过Int32?因为我的数据库的ORM可以为空,所以就有了.

Gre*_*ech 6

它对编译的代码没有任何影响; int是的代名词System.Int32,并string与代名词System.String.

但是,使用intstring等是更地道.