title: How to access var by constructing name using variable and a string
body: <p>In PHP you can do the following to access a variable:</p>
  
  <pre><code>$foobar1 = 00.00;
  $foobar2 = 11.11;
  $foobar3 = 22.22;
  $i = 2;
  
  echo ${'foobar' . $i}; //Prints 11.11
  </code></pre>
  
  <p>I want to do the same in C# but I can't seem to get this to work:</p>
  
  <pre><code>double foobar1 = 00.00;
  double foobar2 = 11.11;
  double foobar3 = 22.22;
  int i = 2;
  
  Print("foobar" + i); //Should print 11.11
  </code></pre>
  
  <p>Any ideas? I have tried a few different searches but I can't seem to find what I'm looking for.</p>
  
  <p>Cheers!</p>