3

I execute code in Tasks in order to generate excel files. But cells format are still in en-US format. Do Tasks get the CurrentCulture parameter of the Current Thread ?

Here some code :

        Parallel.ForEach(_blablalist, blabla =>
        {
            Console.WriteLine(System.Threading.Thread.CurrentThread.CurrentCulture);
            Console.WriteLine(System.Threading.Thread.CurrentThread.CurrentUICulture);
            Dowork(blabla);

        }

Output :

fr-FR

fr-FR

This is what I want but the excel keep to be in en-US format. Maybe Tasks have others parameters :/

andoke
  • 184
  • 13

1 Answers1

0

http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.aspx

Looks like that CultureInfo works only for unmanaged code :(

andoke
  • 184
  • 13