title: Converting a string to a variable name
body: <pre><code>public static string filename2_1, filename2_2, filename2_3;
  filename2_1="xyz.jpg";
  filename2_2="abc.png";
  filename2_3="qwe.jpg";
  
  .....
  ...
  for (int key = 1; key &lt;= 3; key++)
  {
          ....
  foreach (var item in tabItem)
  {
   item.ImagePath.Value = "images1/" + ("filename2_" + key);
   item.ThumbPath.Value = "thumbnails1/" + ("filename2_" + key);
  }
  }
  </code></pre>
  
  <p>As stated above I need to convert ("filename2_" + key) into actual variable. Can anyone help me regarding this</p>