如何在C#中构建新的变量。
顺便说一句。
public void updateXXX(string endingOfVariable, int newValue)
{
this.textBox_{endingOfVariable} = newValue;
}
在博士中实施:
$a = var ; $b = iable ;
$variable = var ;
echo ${$a.$b};
但也许可以在C#中。
The problem is that - I created ~500 textBoxes in C# Windows Form, and if I want to set a value, I need to build a switch() {case:; } statment with 500 s cases.