Home > Blockchain >  C# how to parse dynamic value of "MyValue"
C# how to parse dynamic value of "MyValue"

Time:07-03

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();

CodePudding user response:

you can use

Convert.ToString

for your purpose and give the number of your string

  • Related