Tuesday, September 28, 2010

Send information to database using invariant culture

string currentCulture=System.Threading.Thread.CurrentThread.CurrentCulture ;
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-GB");
//... processing
System.Threading.Thread.CurrentThread.CurrentCulture=new System.Globalization.CultureInfo(currentCulture);

No comments:

Post a Comment