protected virtual bool ReceiveWeakEvent(Type managerType, object sender, EventArgs e) { if (managerType == typeof(TextDocumentWeakEventManager.LineCountChanged)) { OnDocumentLineCountChanged(); return true; } return false; }