I am new in C#, I use to program PHP.
I want to do same thing that is done in PHP code below for C#.
<?php
for($i=0;$i<10;$i++)
{
$tempVar="$newVar".$i;
echo $$tempVar; //to print the content of $newVar0 to $newvar9
}
?>
Is the same option, of changing variable name dynamically, available in C#. Please Guide. Thank you