title: cant add string to list of string c#
body: <p>I'm reading a local csv file which has data and I will eventually use to load into a database. My question is simple in nature but I can't seem to grasp the concept. Below is my code. Pretty simple stuff.</p>
  <pre><code>      static void loadTables() {
          int size = new int();
          string[] empid = new string[0];
         
          //string[] empid = new string();
          List&lt;string[]&gt; EmployeeName = new List&lt;string[]&gt;();
          List&lt;string[]&gt; EmployeeId = new List&lt;string[]&gt;();
          List&lt;string[]&gt; Group = new List&lt;string[]&gt;();
          List&lt;string[]&gt; Org = new List&lt;string[]&gt;();
          List&lt;string[]&gt; Fund = new List&lt;string[]&gt;();
          try {
              using (StreamReader readFile = new StreamReader(&quot;C:\\temp\\groupFundOrgReport.csv&quot;)) 
              {
               string line;
                string[] row;
                size = 0;
                while ((line = readFile.ReadLine()) != null)
                {
                    row = line.Split(',');
                    /*resize the array up by 1*/
                    Array.Resize(ref empid,empid.Length+1);
                    /*I'm using size as a counter to add to the slot on the array.*/
                    empid[size] = row[0].Remove(0,1);
                    // here I receive error (the best overload match of system generic list?...etc) 
                    EmployeeName.Add(row[0]);
                    size++;
                    
                }
  
               }
             }
      
          catch(Exception e){
  
              Console.WriteLine(e);
          
          }
      
      
      
      
      }
  </code></pre>
  <p>I have a list of string but any attempts to add a string to it gets me an error. In other words if I try to do this <strong>EmployeeName.Add(row[0].ToString);</strong> I get an error. However if I comment the line out I can use an old fashion array. I really like to use a list but I can't seem to be able to pass the value that I want. Can someone please point me in the right direction?</p>