private void Clear() { foreach (RecentFile recentFile in recentFiles) { recentFile.PropertyChanged -= RecentFilePropertyChanged; } recentFiles.Clear(); }