I am trying to declare the List like below code.
public List<string> t1,t2,t3 = new List<string>();
When I am trying to add something to List then it gives me error of was null on run time but do not give me compile time error.
public List<string> t1 = new List<string>();
public List<string> t2 = new List<string>();
public List<string> t3 = new List<string>();
While declaration of individual is working perfectly.
Please someone explain this and thank you in advance.