title: Programmatically using a string as object name when instantiating an object
body: <p>This is a contrived example, but lets say I have declared objects:</p>
  
  <pre><code>CustomObj fooObj;
  CustomObj barObj;
  CustomObj bazObj;
  </code></pre>
  
  <p>And I have an string array:</p>
  
  <pre><code>string[] stringarray = new string[] {"foo","bar","baz"};
  </code></pre>
  
  <p>How can I programmatically access and instantiate those objects using the string array, iterating using something like a foreach:</p>
  
  <pre><code>foreach (string i in stringarray) {
      `i`Obj = new CustomObj(i);
  }
  </code></pre>
  
  <p>Hope the idea I'm trying to get across is clear. Is this possible in C#?</p>