Click here to Skip to main content
11,789,710 members (57,479 online)
Click here to Skip to main content

Tagged as

Naming Properties in MVVM

, 20 Jul 2011 CPOL 7.2K 2
Rate this:
Please Sign up or sign in to vote.
PropertyChanged(this, new PropertyChangedEventArgs(MethodBase.GetCurrentMethod().Name.Substring(4)))

It is slower than your method, but it might not be a big issue and it is much easier to manage from a code perspective.

Not sure it is advisable, but definitely simpler.


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


About the Author

Daniel Gidman
Architect Stackify
United States United States
No Biography provided

You may also be interested in...

Comments and Discussions

GeneralMagic number (4) is account for the prefix "set " || "get "... Pin
Daniel Gidman21-Jul-11 3:44
memberDaniel Gidman21-Jul-11 3:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.1509028.1 | Last Updated 20 Jul 2011
Article Copyright 2011 by Daniel Gidman
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid