int column = 43;
foreach (DataRow row in dt.Rows)
{
var dict = JsonConvert.DeserializeObject<Dictionary<string, string>>(row["farm_detailsdata"].ToString());
string str = string.Empty;
foreach (var data in dict)
{
columni++;
worksheet.Cells[2, columnindex].Value = data.Key;
}
}
from the above how to add dicationary values using list
here in this below line dictionary value is there
foreach (var data in dict)
how to add dictionary value to list in c#
from my above how to add dictionary value to list in c#
What I have tried:
int column = 43;
foreach (DataRow row in dt.Rows)
{
var dict = JsonConvert.DeserializeObject<Dictionary<string, string>>(row["farm_detailsdata"].ToString());
string str = string.Empty;
foreach (var data in dict)
{
columni++;
worksheet.Cells[2, columnindex].Value = data.Key;
}
}
from the above how to add dicationary values using list
here in this below line dictionary value is there
foreach (var data in dict)
how to add dictionary value to list in c#
from my above how to add dictionary value to list in c#