I’m trying to parse dynamic value of MyValue :
MyValue has value like-> ValueKind = Number : "0"
The code is:
var pdfAttributeModelDataSet = JsonAttributeHealth.Select(x => new
{
ResponsibilityInfo = x.PersianName,
//YearlyResponsibility="",
MyValue = x.Value,
}).ToList();
2
Answers
you can use
for your purpose and give the number of your string
maybe it’s better to use javaScriptSerializer to serialize and de-serialize your data.