Get properties of class

Posted on 2006-05-03
Medium Priority
Last Modified: 2010-04-16
I am working on some dubuging report tool and I need to get the state of all variables of class and their values. Is there any way to do that programmaticaly? (I tried with System.Reflection but with no success).

I would like to dump the contents of my Settings class to file, which contains different static variables, so that they are visible to all other classes. Problem is that I remove and add these variables oftenly and I don't like to change the routine for writing the dump everey time some variable is added/removed. Instead of that I would like to just enumerate these variables and write their values to file.
Question by:ssdjgru1
1 Comment

Accepted Solution

daniel_balla earned 800 total points
ID: 16594680
Hi ssdjgru1,
here is something that you will find usefull (nearly does everything you want and more)


Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses
Course of the Month15 days, 14 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question