public string[] GetHashList() { string[] hashArray; lock (LockObj) { hashArray = _hashList.ToArray(); _hashList.Clear(); } return hashArray; }