Get name of passed argument in C# method

前端 未结 0 1457
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-23 04:17

I want to get the variable name of an argument passed into a method.

// Somewhere in the code
int myNumber = 1;
Method(myNumber);

...

public void Method(int num         


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