Get properties of class

Posted on 2006-05-03
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
    LVL 9

    Accepted Solution

    Hi ssdjgru1,
    here is something that you will find usefull (nearly does everything you want and more)


    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
    Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    746 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now