I would like to make sure that certain numbers in my application are printed without any separators, groupings etc. no matter what the current environment is. It seems that the following two methods produce the same results (there are possibly more):
123456789.ToString("0");
123456789.ToString(CultureInfo.InvariantCulture);
Are you aware of any edge cases or quirks? Which one is more "correct"? Which one would you use?
I used to use the second one, but recently I found the first one and started using it because it does not require the additional using System.Globalization
.