I have following class in c#. How can I count number of data members at runtime?
public static class ABC
{
public static string A;
public static string B;
public static string C;
}
Bascially, I have to iterate each datamember and pass it to some function one by one which will assign it some value. Thats why I need this.
If its not possible, is there any other way to do same