Click here to Skip to main content
15,895,808 members
Articles / Desktop Programming / WPF

Make OnPropertyChanged events safe for refactoring

Rate me:
Please Sign up or sign in to vote.
5.00/5 (6 votes)
4 Oct 2011CPOL 32.3K   8  
Use OnPropertyChanged events without Magic Strings

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
5 Oct 2011brad.ford@cudl.com
Be aware: expressions take a LOT of time to evaluate (relative to a constant string), and will make writing values to properties slow.I think that the solution is to a problem that has limited risk. What I mean is if you need to rename a property, then the call to the OnPropertyChange is...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
United States United States
I’m a Software Engineer at Microsoft working on the Azure Portal. Before that I spent about 20 years developed various business applications at a number of different companies. I have a passion for writing clean, scalable code and sharing what I’ve learned with others.

I also help run the Casco Bay .Net User Group

Comments and Discussions