I have problem with adding a record to list, which is a parametr of object 'TranchesDt'.
public class TranchesDt
{
    public List<startup> tranches {get; set;}
    public List<reservation> reservations { get; set; }
    public List<location> locations { get; set; }
}
There is the code, where I add objects to 'TranchesDt':
public static TranchesDt Parse(string filePath)
{
    string[] lines = File.ReadAllLines(filePath);
    TranchesDt dt = new TranchesDt();
    for (int i = 0; i < lines.Length; i++)
    {
        string recordId = lines[i].Substring(0, 2);
        switch (recordId)
        {
            case "11":
                {
                    dt.tranches.Add(Parse11(lines[i]));
                    break;
                }
            case "01":
                {
                    dt.locations.Add(Parse01(lines[i]));
                    break;
                }
            case "00":
                {
                    dt.reservations.Add(Parse00(lines[i]));
                    break;
                }
        }
    }
    return dt;
}
public static startup Parse11(string line)
{
    var ts = new startup();
    ts.code = line.Substring(2, 5);
    ts.invoice = line.Substring(7, 7);
    ts.amount = Decimal.Parse(line.Substring(14, 13));
    ts.model = line.Substring(63, 4);
    ts.brutto = Decimal.Parse(line.Substring(95, 13));
    return ts;
}
And I get
System.NullReferenceException: Object reference not set to an instance of an object.
at the line dt.tranches.Add(Parse11(lines[i])); Where my problem is and how can I fix it?
 
     
    