Is Int32.ToString() culture-specific?

后端 未结 7 1086
名媛妹妹
名媛妹妹 2020-11-30 09:47

I\'m running a beta version of ReSharper, and it\'s giving me warnings for the following code:

int id;
// ...
DoSomethingWith(id.ToString());
7条回答
  •  悲哀的现实
    2020-11-30 09:59

    Because integers can be be as high as 2,147,483,647.

    In some countries, they would use decimals or a space in place of the commas.

提交回复
热议问题