我有一堂课:
public class ClientModelData
{
public int clientID { get; set; }
public IList<int> LocationIDs { get; set; }
}
当我调用它时:
ClientModelData obj = new ClientModelData();
obj.LocationIDs.Add(1);
它抛出一个异常:
`((System.Collections.Generic.ICollection<int>)(client.LocationID))' is null`