JsonConvert转化对象问题

我一个对象里面有个对象JsonConvert转化对象问题

然后这个对象里面有个集合属性JsonConvert转化对象问题

我序列化时调试的时候时候是有答案选项这个值的JsonConvert转化对象问题

但是对应的选项这个值却为nullJsonConvert转化对象问题

是什么原因啊

回答

问题补充:

测试的josn:[{"QuestionBaseType":null,"QuestionType":1,"QuestionTitle":"单选题ceshi1","QuestionSelectList":["选项B","选项C","选项D"],"Answer":"A","ErrorAnalysis":"这是一个正确答案","CreateTime":"0001-01-01T00:00:00","Errors":null,"Id":0},{"QuestionBaseType":null,"QuestionType":3,"QuestionTitle":"消防验收属于二级计划ceshi1","QuestionSelectList":["错误"],"Answer":"A","ErrorAnalysis":"这是一个正确答案","CreateTime":"0001-01-01T00:00:00","Errors":null,"Id":0},{"QuestionBaseType":null,"QuestionType":3,"QuestionTitle":"项目在报集团核准时,工期可为相对时间,在项目批复后应同步修正为绝对时间ceshi1","QuestionSelectList":["错误"],"Answer":"A","ErrorAnalysis":"这是一个正确答案","CreateTime":"0001-01-01T00:00:00","Errors":null,"Id":0}]

以上是 JsonConvert转化对象问题 的全部内容, 来源链接: utcz.com/a/66808.html

回到顶部