3
Answers

Get name of class property?

yuriy thebest

yuriy thebest

13y
2.1k
1
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)