/**/
/// <summary>
/// 根椐哈希的键获得对应值
/// </summary>
/// <param name="ht">哈希</param>
/// <param name="key">键</param>
/// <returns>值</returns>
private string GetHashTableValueByKey(Hashtable ht, string key)
... {
string rv = string.Empty;
foreach (DictionaryEntry de in ht)
...{
if (de.Key.ToString().Trim() == key.Trim())
...{
rv = de.Value.ToString();
}
}
return rv;
}
/// 根椐哈希的键获得对应值
/// </summary>
/// <param name="ht">哈希</param>
/// <param name="key">键</param>
/// <returns>值</returns>
private string GetHashTableValueByKey(Hashtable ht, string key)
... {
string rv = string.Empty;
foreach (DictionaryEntry de in ht)
...{
if (de.Key.ToString().Trim() == key.Trim())
...{
rv = de.Value.ToString();
}
}
return rv;
}