Data Browser - Viewing Site  Sector 23 Code Bank Logged in as:  Guest  




           


Get Resource from File without changing CurrentUICulture
Assuming you have a .NET resource file "MyResources" with key/value pairs, and the currentUICulture is set to "A", how would you get the value for culture "B" without being forced to explicitly change the CurrentUICulture?

Answer: Use the ResourceManager property of the resource file class.

MyResources.ResourceManager.GetString("MyKey", culture);

Created By: amos 6/20/2013 5:41:02 PM