Posted By

pauliehaha on 07/29/09


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


Iterate through all properties of a class

 / Published in: C#

Reflection is an important capability of the .NET framework and enables you to get information about objects at runtime. In this snippet, we will iterate through all properties for a class named Person using reflection.

The Person class extends System.Object and does not implement any interface. It is a simple class used to store information about a person.

Report this snippet  

You need to login to post a comment.