Skip to content

Commit

Permalink
Merge pull request #1363 from siriak/fix/1392
Browse files Browse the repository at this point in the history
Fix #1362 Removed string literals in favor of nameof usage
  • Loading branch information
siegfriedpammer committed Jan 5, 2019
2 parents b93d99a + fea3548 commit b141549
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions ILSpy/AboutPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public bool AutomaticUpdateCheckEnabled {
if (automaticUpdateCheckEnabled != value) {
automaticUpdateCheckEnabled = value;
Save();
OnPropertyChanged("AutomaticUpdateCheckEnabled");
OnPropertyChanged(nameof(AutomaticUpdateCheckEnabled));
}
}
}
Expand All @@ -249,7 +249,7 @@ public DateTime? LastSuccessfulUpdateCheck {
if (lastSuccessfulUpdateCheck != value) {
lastSuccessfulUpdateCheck = value;
Save();
OnPropertyChanged("LastSuccessfulUpdateCheck");
OnPropertyChanged(nameof(LastSuccessfulUpdateCheck));
}
}
}
Expand Down
12 changes: 6 additions & 6 deletions ILSpy/FilterSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public string SearchTerm {
set {
if (searchTerm != value) {
searchTerm = value;
OnPropertyChanged("SearchTerm");
OnPropertyChanged(nameof(SearchTerm));
}
}
}
Expand All @@ -89,7 +89,7 @@ public ApiVisibility ShowApiLevel {
set {
if (showApiLevel != value) {
showApiLevel = value;
OnPropertyChanged("ShowApiLevel");
OnPropertyChanged(nameof(ShowApiLevel));
}
}
}
Expand All @@ -102,8 +102,8 @@ public bool ShowInternalApi {
} else {
ShowApiLevel = ApiVisibility.PublicAndInternal;
}
OnPropertyChanged("ShowInternalApi");
OnPropertyChanged("ShowAllApi");
OnPropertyChanged(nameof(ShowInternalApi));
OnPropertyChanged(nameof(ShowAllApi));
}
}

Expand All @@ -115,8 +115,8 @@ public bool ShowAllApi {
} else {
ShowApiLevel = ApiVisibility.All;
}
OnPropertyChanged("ShowInternalApi");
OnPropertyChanged("ShowAllApi");
OnPropertyChanged(nameof(ShowInternalApi));
OnPropertyChanged(nameof(ShowAllApi));
}
}

Expand Down
2 changes: 1 addition & 1 deletion ILSpy/LoadedNugetPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void EntryPropertyChanged(object sender, PropertyChangedEventArgs e)
SelectedEntries.Add(entry);
else
SelectedEntries.Remove(entry);
OnPropertyChanged("SelectedEntries");
OnPropertyChanged(nameof(SelectedEntries));
}
}

Expand Down

0 comments on commit b141549

Please sign in to comment.