Does not contain a constructor that takes 1 argument even though there is a constructor that takes 1 argument
<p>I'm trying to build a class that will hold a row of data from a CSV file along with its header information.  Then outside the class I am making a List&lt;> of elements of this class.  However I am getting this error which completely worthless,  "DynamicCSV does not contain a constructor that takes 1 arguments."  Fact is it does in fact contain a constructor with 1 argument.</p>

<pre><code>class DynamicCSV : DynamicObject
{
    public List&lt;string&gt; columnHeaders;
    public List&lt;string&gt; rowData;

    /* Constructor with 1 argument */        
    DynamicCSV(List&lt;string&gt; headers)
    {
        columnHeaders = new List&lt;string&gt;();
        dynamic rowData = new List&lt;string&gt;();
        columnHeaders = headers;
    }
}


/* code that calls the constructor */
while (!streamReader.EndOfStream)
{
    List&lt;string&gt; headers = new List&lt;string&gt;();
    List&lt;string&gt; dataRow = new List&lt;string&gt;();
    List&lt;DynamicCSV&gt; dataRows = new List&lt;DynamicCSV&gt;();

    if (true == isHeaderRow)
    {
        currentRow = streamReader.ReadLine();
        headers.AddRange(currentRow.Split(','));

        dataRows.Add(new DynamicCSV(headers));  // here is the error
        isHeaderRow = false;
    }

    else
    {
        currentRow = streamReader.ReadLine();
        dataRow.AddRange(currentRow.Split(','));
    }
}
</code></pre>
