Click here to Skip to main content
12,303,230 members (77,341 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


2 bookmarked

Naming Properties in MVVM

, 20 Jul 2011 CPOL
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

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