fungus icon indicating copy to clipboard operation
fungus copied to clipboard

Improve display of variables in GetDescription

Open chrisgregan opened this issue 9 years ago • 0 comments

Requested by Gyd via email.

when we call the method: public string GetDescription() { if (stringRef == null) { return stringVal; } else { return stringRef.key; } }

the result won't describe what kind of description is. also for the other XXXXData type.

my suggestion is like the code: public string GetDescription() { if (stringRef == null) { return stringVal; } else { return stringRef.key:stringRef.value; // or return stringRef.value + "(" + stringRef.key + ")"; } }

chrisgregan avatar Jan 07 '16 10:01 chrisgregan