public void UnRegisterVirtualTextMarker (IExtendingTextLineMarker marker) { var keys = new List<int> (from pair in virtualTextMarkers where pair.Value == marker select pair.Key); keys.ForEach (key => { virtualTextMarkers.Remove (key); CommitLineUpdate (key); }); }