public void Remove(Language_Enum loLanguage, string lsKey) { if (m_Dict.ContainsKey(loLanguage.ToString() + '_' + lsKey)) { m_Dict.Remove(loLanguage.ToString() + '_' + lsKey); } }
public string Get(Language_Enum loLanguage, string lsKey) { if (m_Dict.ContainsKey(loLanguage.ToString() + '_' + lsKey)) { return(m_Dict[loLanguage.ToString() + '_' + lsKey]); } else { return("Key: " + loLanguage.ToString() + '_' + lsKey); } }
private System.Collections.Generic.List <string> GetLanguageKeyList(Language_Enum loLanguage) { System.Collections.Generic.List <string> loList = new System.Collections.Generic.List <string>(); foreach (string lsKey in m_Dict.Keys) { if (lsKey.IndexOf(loLanguage.ToString() + "_") == 0) { loList.Add(lsKey); } } return(loList); }
public void Add(Language_Enum loLanguage, string lsKey, string lsText) { m_Dict.Add(loLanguage.ToString() + '_' + lsKey, lsText); }