public void Remove(Kehu kehu) { this._lock.AcquireWriterLock(0); try { this._kehuList.Remove(kehu); } finally { this._lock.ReleaseWriterLock(); } }
public List <Dingdan> GetDingdan(Kehu kehu) { this._lock.AcquireReaderLock(0); try { return(this._dingdanList.Where(d => d.Kehu == kehu).ToList()); } finally { this._lock.ReleaseReaderLock(); } }