• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 179
  • Last Modified:

Get properties of class

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.
1 Solution
Hi ssdjgru1,
here is something that you will find usefull (nearly does everything you want and more)

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now