public bool IsRepeat(string[] yourValue) { Hashtable ht = new Hashtable(); for (int i = 0; i < yourValue.Length - 1; i++) { if(ht.Contains(yourValue[i])) { return true; } else { ht.Add(yourValue[i], yourValue[i]); } } return false; }
标签:pos return table gpo post repeat 判断 contain val
public bool IsRepeat(string[] yourValue) { Hashtable ht = new Hashtable(); for (int i = 0; i < yourValue.Length - 1; i++) { if(ht.Contains(yourValue[i])) { return true; } else { ht.Add(yourValue[i], yourValue[i]); } } return false; }
标签:pos return table gpo post repeat 判断 contain val
原文地址:https://www.cnblogs.com/mutare/p/8549602.html