Is there a way to enumerate or simply for each into a class’s member variables in .net ?
I have a static class, which i want to use for holding the application settings, so while saving the settings I basically want to copy the values of the Static Class to a Instance of a class containg the same set of (non-static) variables .
SO i thought “if only I could foreach or even for() (for that matter..pun unintended) it would be easier
from your description, Dictionary would be a good data type to store your application settings:
a more low-level thing would be to use reflection to retrieve the class’s members or fields: