/// <summary> /// 通过Dictionary key值获取对应value /// </summary> public string GetValueByKey(Dictionary<string, string> dic,string key) { string result = ""; foreach (KeyValuePair<string, string> kvp in dic) { if (kvp.Key.Equals(key)) { result = kvp.Value; break; } } eturn result; }