public bool IsRepeat(string[] yourValue) { Hashtable ht = new Hashtable(); for (int i = 0; i < yourValue.Length - 1; i++) { if(ht.Contains(yourValue[i... ...
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; }