Foreach to linq converter
Hi,what is the conversion of the below for each loop into linq.
foreach (var x in response)
{
foreach (var y in x.Value)
{
string key = "";
string value = "";
foreach (var z in ((JObject)y))
{
if ("Code".Equals(z.Key)) key = (string)z.Value;
else value = (string)z.Value;
}
PropertyManager.UpdateProperty(key, value);
}
}
i want to write down the linq query for the foreach statement.