public void UnregisterSourceFile(TextEditor editor, ISourceFile file) { var association = GetAssociatedData(file); editor.RemoveHandler(InputElement.KeyUpEvent, association.KeyUpHandler); association.Solution = null; dataAssociations.Remove(file); }