摘要:
public int GetHashCode(string s) { int hash = 5381; int len = s.Length; for (int i = 0; i < len; i++) { int c = Convert.ToInt32(s[i]); hash = ((hash << 5) + hash) ^ c; } return hash; } 阅读全文
posted @ 2012-06-04 11:26
叮/当
阅读(329)
评论(1)
推荐(1)
浙公网安备 33010602011771号