public Dictionary <string, string> GetResourceStrings(string resName, ResourceArray ResDic) { // createFolders(); Dictionary <string, string> resources = new Dictionary <string, string>(); try { Type t = BuildManager.GetType("WebClient.Resource." + resName + ",WebClient.Resource", false); ResourceManager mn = new ResourceManager(t); for (int i = 0; i < ResDic.ResArray.Count; i++) { resources.Add(ResDic.ResArray[i], mn.GetString(ResDic.ResArray[i], new System.Globalization.CultureInfo(CultureHelper.GetCurrentCulture()))); } } catch (Exception ex) { } return(resources); }
public Dictionary<string, string> GetResourceStrings(string resName, ResourceArray ResDic) { // createFolders(); Dictionary<string, string> resources = new Dictionary<string, string>(); try { Type t = BuildManager.GetType("WebClient.Resource." + resName + ",WebClient.Resource", false); ResourceManager mn = new ResourceManager(t); for (int i = 0; i < ResDic.ResArray.Count; i++) { resources.Add(ResDic.ResArray[i], mn.GetString(ResDic.ResArray[i], new System.Globalization.CultureInfo(CultureHelper.GetCurrentCulture()))); } } catch (Exception ex) { } return resources; }