// create anonymous type
var reportExample = new { ReportName = "", ReportID = 0};
// create IEnumerable of anon type
var listExample = (new[] { reportExample }).ToList();
var theList = JsonConvert.DeserializeAnonymousType(hdnSelectedReportIds.Value, listExample);
No comments:
Post a Comment