Click here to Skip to main content
15,889,536 members
Articles / Programming Languages / C#

Walk 'object tree' with easy null handling

Rate me:
Please Sign up or sign in to vote.
4.00/5 (2 votes)
19 Dec 2010CPOL 12.5K   3  
A simple 'NullHelper' class helps dealing with walking an object tree without the need for null checking at each step. The solution is efficient because it does not use reflection.

Views

Daily Counts

License

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


Written By
Software Developer (Senior) Phi International
Canada Canada
Grew up in Amsterdam, now living in downtown Vancouver. There are definitely more mountains here.

My first internship was with the first company in the Netherlands to teach C++ (www.datasim.nl). During this internship I got to know Object Oriented Design, which kept my interest until this day. In the mean time, I have worked for different companies in the Netherlands and Canada. I have done most of my recent work in C#, developing Database/Web/Desktop applications.

I am currently working as a freelance Software Developer for PHI International in Amsterdam.

The CodeProject rocks!

Comments and Discussions