Is it possible to write a function that can determine the original var name of a passed in param?

后端 未结 0 729
情话喂你
情话喂你 2021-01-12 02:07

The basic goal is to write a function as such:

int myInt = 5;
PrettyPrint(myVar);

//in some helper class
public static void PrettyPrint(T var) {
            


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题