My code as follows
int columnindex = 43;
List lst = new List();
List
foreach (DataRow row in dtFarmerFarmReports.Rows)
{
var dict = JsonConvert.DeserializeObject>(row["farm_detailsdata"].ToString());
if (dict!=null && dict!= string.Empty)
{
string str = string.Empty;
lst.AddRange(dict.Keys);
}
{
var dict = JsonConvert.DeserializeObject
if (dict!=null && dict!= string.Empty)
{
string str = string.Empty;
lst.AddRange(dict.Keys);
}
}
when i run shows error as follows
Operator '!=' cannot be applied to operands of type 'Dictionary' and 'string'
Operator '!=' cannot be applied to operands of type 'Dictionary
how to fix this error.
Nitin SontakkePosted May 29, 2018, 2:06 AM
Posted May 29, 2018, 12:24 AM
Nitin SontakkePosted May 28, 2018, 8:45 AM