Replace all magic string with just one regex

Today I am going to show you how to use a regular expression with back reference matching to quickly replace all occurrences of magic strings to strong type names. In my WPF project I had a method which was connected to the INotifyPropertyChanged interface and notified the WPF binder whenever a property on my model was changed. This method took as a parameter the name of the pr…

By Mirek on (tags: INotifyPropertyChanged, nameof, regex, visual studio, categories: tools)