title: Constructor on type not found
body: <p>Exception Message: <code>Constructor on type StateLog not found</code>.</p>
  
  <p>I have the following code that does not work for only one class:</p>
  
  <pre><code>        List&lt;T&gt; list = new List&lt;T&gt;();
          string line;
          string[] lines;
  
          HttpWebResponse resp = (HttpWebResponse)HttpWebRequest.Create(requestURL).GetResponse();
  
          using (var reader = new StreamReader(resp.GetResponseStream()))
          {
              while ((line = reader.ReadLine()) != null)
              {
                  lines = line.Split(splitParams);
                  list.Add((T)Activator.CreateInstance(typeof(T), lines));
              }
          }
  </code></pre>
  
  <p>The constructor for the class that it does not work for is exactly like the other classes for which it works. The only difference is that this class will be passed 16 arguments instead of 2-5. The constructor looks as such:</p>
  
  <pre><code>    public StateLog(string[] line)
      {
          try
          {
              SessionID = long.Parse(line[0]);
              AgentNumber = int.Parse(line[1]);
              StateIndex = int.Parse(line[5]);
              ....
          }
          catch (ArgumentNullException anex)
          {
              ....
          }
      }
  </code></pre>
  
  <p>Like I said, it works for the other 5 classes that use this, the only difference is the number of inputs.</p>