Why does release mode affect on Thread.CurrentThread.CurrentCulture?

Posted by satispunk on Stack Overflow See other posts from Stack Overflow or by satispunk
Published on 2010-05-01T18:06:56Z Indexed on 2010/05/01 18:07 UTC
Read the original article Hit count: 365

Filed under:
|

Hi

I have ASP .NET application. I set culture in Application_Begin request:

System.Threading.Thread.CurrentThread.CurrentCulture = myCulture; System.Threading.Thread.CurrentThread.CurrentUICulture = myCulture;

When I get current culture from page, it is myCulture in debug mode and it is "en-GB" in release mode.

I don't understand why Release mode affects on Thread.CurrentThread.CurrentCulture

I use VS2010 and .NET 4.0

Thanks

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#