Click here to Skip to main content
12,818,816 members (32,502 online)
Click here to Skip to main content

Stats

11.9K views
2 bookmarked
Posted 8 Apr 2011

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...

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