I have a private static function that has a string parameter and a Type parameter. I'm passing these to my code. However, I'm caught up on one specific area.
Here's my function:
private static object GetCSVRecords(string path, Type t)
{
    using (var txtReader = new StreamReader(path))
    {
        var csv = new CsvReader(txtReader);
        var recordList = csv.GetRecords<t>();
    }
    return recordList;
}
I'm attempting to pass a Type into the GetRecords<>.  The error i'm getting says Cannot resolve symbol 't'.  What am I doing wrong?
 
     
     
     
    