c# is linq the best way to extract one element out of a dictionary?
I am have a list of dictionary objects and I want a list of strings. The list of strings will be one key from the dictionary.
var dataRows = new List<Dictionary<string, string>>();
dataRows = getRows()// passes back a
//after that, get a list with just gridRowId
var justGridRowIds =
from datarow in dataRows
where datarow["gridRowId"] != ""
This seems very slow. Is there a better way? The datarows list could have tens of thousands of elements.