INotifyPropertyChanged property name - hardcode vs reflection?

Posted by Kerry Jenkins on Stack Overflow See other posts from Stack Overflow or by Kerry Jenkins
Published on 2008-09-26T19:15:43Z Indexed on 2010/03/19 19:31 UTC
Read the original article Hit count: 327

Filed under:
|
|

What is the best way to specify a property name when using INotifyPropertyChanged?

Most examples hardcode the property name as an argument on the PropertyChanged Event. I was thinking about using MethodBase.GetCurrentMethod.Name.Substring(4) but am a little uneasy about the reflection overhead.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about wpf