diff --git a/ILSpy/MainWindow.xaml.cs b/ILSpy/MainWindow.xaml.cs index 10aca41b3..e88dafeb6 100644 --- a/ILSpy/MainWindow.xaml.cs +++ b/ILSpy/MainWindow.xaml.cs @@ -146,7 +146,7 @@ namespace ICSharpCode.ILSpy filterSettings = dock.ActiveTabPage.FilterSettings; filterSettings.PropertyChanged += filterSettings_PropertyChanged; - var windowMenuItem = mainMenu.Items.OfType().First(m => (string)m.Tag == Properties.Resources._Window); + var windowMenuItem = mainMenu.Items.OfType().First(m => (string)m.Tag == nameof(Properties.Resources._Window)); foreach (MenuItem menuItem in windowMenuItem.Items.OfType()) { if (menuItem.IsCheckable && menuItem.Tag is TabPageModel) @@ -355,7 +355,7 @@ namespace ICSharpCode.ILSpy private void InitWindowMenu() { - var windowMenuItem = mainMenu.Items.OfType().First(m => (string)m.Tag == Properties.Resources._Window); + var windowMenuItem = mainMenu.Items.OfType().First(m => (string)m.Tag == nameof(Properties.Resources._Window)); Separator separatorBeforeTools, separatorBeforeDocuments; windowMenuItem.Items.Add(separatorBeforeTools = new Separator()); windowMenuItem.Items.Add(separatorBeforeDocuments = new Separator());