CultureInfo

  • Thread starter Thread starter Urs Vogel
  • Start date Start date
U

Urs Vogel

Hi

I've been taken by surprise when I realized that MyDouble.ToString()
actually formats the string based on the local settings of the machine it
was installed on (rather than using InvariantCulture settings by default).
This represents a problem for my app, since this data is converted back to
doubles at some later stage and since the client and the server may have
different regional settngs.

Is there a way to set the culture in an application 'globally', rather the
using MyDouble.ToString(System.Globalization.CultureInfo.InvariantCulture)
all over the place?

Thanks for any hints.

Urs
 
Jay

Wasn't aware of thread related culture settings. The current thread works
fine for me, and since I use the thread pool with very few generic API
methods, it's fairly easy to control.

Thanks, Urs.
 
Back
Top