title: Creating objects dynamically in loop
body: <p>I have an array of strings that I am looping through. I would like to loop through the array and on each iteration, create a new object with a name that matches the string value.</p>
  
  <p>For example;</p>
  
  <pre><code>string[] array = new string[] { "one", "two", "three" };
  
  class myClass(){
  
      public myClass(){
      }
  }
  
  foreach (string name in array)
  {
     myClass *value of name here* = new myClass(); 
  }
  </code></pre>
  
  <p>Would result in three objects being instantiated, with the names "one", "two" and "three".</p>
  
  <p>Is this possible or is there are better solution?</p>