Here is my class pax
public class pax
{
public pax();
[SoapElement(DataType = "integer")]
public string age { get; set; }
public string firstName { get; set; }
public string lastName { get; set; }
public string paxType { get; set; }
public string title { get; set; }
}
and i have declare the following array
pax[][]rooms=new pax[3][];
rooms[0][0].paxType = "Adult";
rooms[0][1].paxType="Adult";
rooms[0][2].paxType="Child";
rooms[0][2].age = "6";
Its throwing an error Object reference not set to an instance of an object. on line
rooms[0][0].paxType = "Adult";