110,534
社区成员
发帖
与我相关
我的任务
分享
public int GetHashCode(List<string> obj)
{
if (obj == null)
return 0;
int hash = 17;
hash = (hash * 3) + obj.Count.GetHashCode();
foreach (string str in obj)
{
hash = (hash * 3) + str.GetHashCode();
}
return hash;
//throw new NotImplementedException();
}