I'd like to be able to call ToString() on a variable without specifying a culture (so, using System.Globalization.CultureInfo.CurrentCulture in some way) that produces comma-separated integers for those of us in the U.S.:
123456789.123 => 123,456,789.123
but allows partners in Europe to see things according to their UI culture. So, probably something like this:
123456789.123 => 123.456.789,123
Basically, with commas and decimals reversed.
I don't believe I should have to specify the target culture. I always want to use the UI culture. Every damn example I can find seems to be targeting "de-DE" or something specific. Or the result lacks the separator commas that I'm wanting for US-based users.
Thanks
Please take a look the following example code. Feel free to contact me if you have any questions.
Open in new window