void OnFinishWriting(Type type) { FinishWriting?.Invoke(this, type); }
/// <summary>Calls the OnFinishWriting delegate and discards it</summary> private void FinishTyping() { OnFinishWriting?.Invoke(); OnFinishWriting = null; }