public void Clear() { editMutex.EnterWriteLock(); lineLength.Clear(); buffer.Clear(); editMutex.ExitWriteLock(); BufferCleared.Raise(this, null); }
public void Clear() { lock (EditMutex) { longestLineCharCount = 0; lines.Clear(); BufferCleared.Raise(this, null); } }
public void Clear() { editMutex.EnterWriteLock(); longestLineCharCount = 0; lines.Clear(); editMutex.ExitWriteLock(); BufferCleared.Raise(this, null); }
protected virtual void OnBufferCleared(EventArgs e) { BufferCleared?.Invoke(this, e); }