title: C# How can I destroy a temporary string array before it gets garbage collected?
body: <p>I have a string that contains comma seperated email addresses. I then load this into a string array, and from then populate a list which is easier to work with. Once the list is populated, I would like to be able to destroy the now unused string array, because the class still has a lot of work to do before the garbage collector will clean up this waste of memory. </p>
  
  <p>How can I manually destroy this string array...</p>
  
  <p>While reviewing the code, if you have a cleaner more efficient way of populating the list, recommendations are welcome.</p>
  
  <p>Here is code:</p>
  
  <pre><code>  public class EmailReportManager
      {
          private List&lt;string&gt; emailAddresses;
  
          public EmailReportManager(string emailAddressesCommaSeperatedList)
          {
              loadAddresses(emailAddressesCommaSeperatedList);
          }
  
          private void loadAddresses(string emailAddressesCommaSeperatedList)
          {
              string[] addresses = emailAddressesCommaSeperatedList.Split(',');
              for (int addressCount = 0; addressCount &lt; addresses.Length; addressCount++)
              {
                  this.emailAddresses.Add(addresses[addressCount]);
              }
              //Want to destroy addresses here.....
  
          }
      }
  </code></pre>