dynamic variable in c#?
- by terrani
Hi,
is it possible to use dynamic variable (not sure about naming) in c#?
in php, I can do
$var_1 = "2";
$var_2 = "this is variable 2";
$test = ${"var_".$var_1};
echo $test;
output: this is variable 2;
can we do this in c# ?