What I mean by the subject is, is it possible to print out a string that is aware of the name of the variable it is stored in?
For example... I'm reading right now about overriding a class's
ToString() method, and I want to know if there exists a way to call
myObject.ToString(); and have it print out the name of the variable that the object is stored in, and the object data? Like, an example output would be
myObject = [var1: 1; var2: 2; var3: 3]