Click here to Skip to main content
Click here to Skip to main content

Get Nested Property value using reflection and Linq.Expression

By , 20 Nov 2011
 

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

1. Get Nested Property value using reflection and Linq.Expression
Updated: 8 Apr 2011
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...
C#, ASP.NET, LINQ, reflection
 

License

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

About the Author

Massimiliano Peluso "WeDev Limited"
Architect PeluSoft Limited
United Kingdom United Kingdom
Member
I have been developing software since I was 10 years old: I'm proud to have started with an Olivetti PC 128S Smile | :) .
I'm a Software Architect and Senior Developer with a strong back ground of all the developing Microsoft's technologies.
In my life I have had the chance to work in Microsoft services as Microsoft consultant for more then 3 years, then I decided to imporve my skill and face new challanges so I moved to UK where the IT market is very developed and competitive

| | Privacy | Mobile
Web01 | 2.6.130523.1 | Last Updated 20 Nov 2011
Article Copyright 2011 by Massimiliano Peluso "WeDev Limited"
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid