My previous post contained a small piece of code explaining how to loop through object properties with the Reflection namespace in C#.
This object contains 4 properties:
- Name (string)
- LastName (string)
- Age (int)
- Kids (array)
The function will receive an object and loop through all of it's properties.
I'd like to take 2-4 more lines to explain a bit about the for syntax I used.
CTO at ITweetLive.com