Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

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



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


About the Author


United States United States
No Biography provided

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