When does it matter whether you use int versus Int32, or string versus String?

前端 未结 8 651
慢半拍i
慢半拍i 2021-01-19 14:02

In C#, the keywords for built-in types are simply aliases for corresponding types in the System namespace.

Generally, it makes no difference whether yo

8条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-19 14:51

    string is an alias for the type System.String, and int is an alias for System.Int32. Therefore, use to your preference.

提交回复
热议问题