title: adding files to a list in a method
body: <p>I have a method I wrote to add some files to a list, inside the method the list contains the files, but when I step out of the method with the debugger, the list is empty. </p>
  
  <pre><code>List&lt;string&gt; lstPDFApps = new List&lt;string&gt;();
  
  public void GenerateEmployeeApplication(int enrollmentId, long packageId, int carrierId)
  {
      --snip--
      get.Fill(dt, carrierId, 14);
      foreach (DataRow dr in dt)
      {
          var param = new List&lt;SqlParameter&gt;();
          param.Add(new SqlParameter("@EnrollmentID", enrollmentId));
  
          param.Add(new SqlParameter("@PackageID", packageId));
          var files = dr.PDFStamp(param);
          lstPDFApps.AddRange(files.Where(file =&gt; file != ""));
  
      }
  }
  </code></pre>
  
  <p>The list is a public list of strings</p>
  
  <p>Any ideas?</p>