Click here to Skip to main content
11,709,955 members (86,964 online)
Click here to Skip to main content

Tagged as

Naming Properties in MVVM

, 20 Jul 2011 CPOL 7K 2
Rate this:
Please Sign up or sign in to vote.
PropertyChange...
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.

License

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

Share

About the Author

Daniel Gidman
Architect Stackify
United States United States
No Biography provided

You may also be interested in...

Comments and Discussions

 
GeneralRe: Unfortunatly not - I thought Substring(...) would cut the en... Pin
Doc Lobster21-Jul-11 19:52
memberDoc Lobster21-Jul-11 19:52 
Unfortunatly not - I thought Substring(...) would cut the end of the string, not its start. See Daniels reply below

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
Web02 | 2.8.150819.1 | Last Updated 20 Jul 2011
Article Copyright 2011 by Daniel Gidman
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid