C# How can I force Localization Culture to en-US for tests project

后端 未结 6 1135
清酒与你
清酒与你 2021-02-02 07:33

How to specify concrente Localization Culture for tests project in C# in VS2008? I\'m building Asp .Net MVC app that has nonstandard culture specified in web.config but how to s

6条回答
  •  眼角桃花
    2021-02-02 07:52

    System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo("en-US");
    System.Threading.Thread.CurrentThread.CurrentCulture = ci;
    

提交回复
热议问题