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

前端 未结 8 729
慢半拍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:34

    It doesn't require you to use one or the other. However, if you want a larger or smaller int you might want to explicitly use Int16 or Int64 instead of int which is an alias for Int32.

提交回复
热议问题