I have a class:
public class ClientModelData
{
public int clientID { get; set; }
public IList<int> LocationIDs { get; set; }
}
When I call it:
ClientModelData obj = new ClientModelData();
obj.LocationIDs.Add(1);
It throws an exception:
`((System.Collections.Generic.ICollection<int>)(client.LocationID))' is null`