当我尝试将List<QuestionGroupModel>
分配给另一个时,为什么我会收到NullReferenceException?
CustomizationsModel customizations.QuestionGroups = new List<QuestionGroupModel>(lead.Offers.customizationsModel.QuestionGroups);
对象引用未设置为对象的实例
CustomizationsModel类
public class CustomizationsModel
{
public List<QuestionGroupModel> QuestionGroups { get; set; }
}
我做错了什么?