Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Specify a culture in string conversion explicitly

I have a loop in which I call ToString() on the int variable i.

for (int i = 1; i <= n; i++)
{
    @Html.ActionLink(@i.ToString(), "Index")
}

Resharper tells me that I should:

Specify a culture in string conversion explicitly.

Why is this?

How many ways are there to convert an int into a string?

I would have thought only 1.

like image 444
Sachin Kainth Avatar asked Sep 20 '12 10:09

Sachin Kainth


1 Answers

There are different methods of grouping symbols, like 1000; 1 000 and 1'000. Besides there are different digits used for numbers in different countries Chinese numerals

You can see different numbers in Control Panel -> region and language -> Formats -> additional settings -> Standart digits. (Win 7)

like image 122
Dmitrii Dovgopolyi Avatar answered Oct 13 '22 00:10

Dmitrii Dovgopolyi