Click here to Skip to main content
12,945,575 members (48,932 online)
Click here to Skip to main content

Tagged as


4 bookmarked
Posted 16 Dec 2011

How to get property name using Expression

, 16 Dec 2011 CPOL
Nice, I do like the expression trees. :)Unfortunately, I can't remember the reference I used to make this one, but I find the property name in a slightly different way:public static string PropertyName(Expression> expression){ var body = expression.Body as...
No downloads associated with this content

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


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


About the Author

Jonathon Bolster
Web Developer
United Kingdom United Kingdom
No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170518.1 | Last Updated 16 Dec 2011
Article Copyright 2011 by Jonathon Bolster
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid