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.