Hi there, I have a struct
struct myStruct {
Dictionary<string, int> a;
Dictionary<string, string> b;
......
}
I want to create a arraylist of that struct
ArrayList l = new ArrayList();
myStruct s;
s.a.Add("id",1);
s.b.Add("name","Tim");
l.Add(s);
However, I got the error "Object reference not set to an instance of an object."
Anyone could tell me why?
Thanks.