Click here to Skip to main content
12,302,307 members (22,282 online)
Click here to Skip to main content

Stats

10.3K views
2 bookmarked
Posted

Get Nested Property value using reflection and Linq.Expression

, 8 Apr 2011 CPOL
Saw this a while back; it's simpler (dirty and wrong but... ):public static T Get(Func getDelegate, bool DefaultTOnNull = false, T defaultVal = null) where T : class{ T result = null; try { result = getDelegate(); } catch...

Views

Downloads

License

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

Share

About the Author

cechode
United States United States
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160530.1 | Last Updated 8 Apr 2011
Article Copyright 2011 by cechode
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid