cra*_*ver 1 c# struct types
我一直在使用"Int32", "String", and "Boolean"而不是"int", "string", "bool"在C#中使用一段时间,但我不知道为什么.为什么这很重要?哪个更好"?有什么不同?
"Int32", "String", and "Boolean"
"int", "string", "bool"
我用过Int32?因为我的数据库的ORM可以为空,所以就有了.
Int32
Gre*_*ech 6
它对编译的代码没有任何影响; int是的代名词System.Int32,并string与代名词System.String.
int
System.Int32
string
System.String
但是,使用int和string等是更地道.
归档时间:
15 年,9 月 前
查看次数:
177 次
最近记录:
9 年,7 月 前