Click here to Skip to main content
11,478,642 members (66,178 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

How to get property name using Expression

, 16 Dec 2011 CPOL 10.5K 4
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...

Revisions


  

Compare Revision Minor Date Status Editor
3 - publicly available No 16-Dec-11 11:45 Available Deeksha Shenoy
2 No 16-Dec-11 9:26 Composing Jonathon Bolster
1 No 16-Dec-11 9:22 Composing Jonathon Bolster

License

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

Share

About the Author

Jonathon Bolster
Web Developer
United Kingdom United Kingdom
No Biography provided

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