public void Clear() { lock (SyncRoot) { buffer.Clear(); CollectionChanged?.Invoke(NotifyCollectionChangedEventArgs <T> .Reset()); } }