I want to convert this this piece of code to a LINQ query as LINQ is much quicker than a foreach. I dont know how to go about doing it, can do basically simple LINQ queries.
What i am trying to do is get a specific field in the dictionary.
Dictionary<string, object> fieldLayout = null;
foreach (Dictionary<string, object> dic in pageLayout)
{
if (dic[ "FIELD" ].ToString() == "123")
{
fieldLayout = dic;
break;
}
}