Get name of class property?

Oct 30 2011 1:46 AM
Right, say I have something like:

myClass.myClassIntegerVariable=23


Is there an easy way of getting not the value of myClassIntegerVariable, but it's name as a String?  Otherwise I'd have to create  redundant data like:

myClass.myClassIntegerVariable=23;
myClass.myClassIntegerVariableName="myClassIntegerVariableName";




Answers (3)