private ResourceManager GetResourceManager(LanguageSection managerName) { if (!resManLookUp.ContainsKey(managerName)) { resManLookUp.Add(managerName, new ResourceManager(this.GetType().Namespace + ".Resources." + managerName, this.GetType().Assembly)); } return(resManLookUp[managerName]); }
public string GetString(LanguageSection section, string key) { return(GetResourceManager(section).GetString(key, Thread.CurrentThread.CurrentCulture)); }