I am trying to initialize a list in a class but it thows object not set to an instance of an object
Objs
class te1
{
public t2 test2 {get; set;}
public string tst {get; set;}
}
class t2
{
public List<string> da {get; set;}
}
Calling (this is what throws the error)
var data = new te1();
data.t2.da = new List<string>();