Is it possible, and if so how, to loop though the results of a LINQ query?
Something like this:
var results= from a in dt.AsEnumerable()
Action processColumName = (cname) => { // do anything you want with a column name string foo = (string) Row[cname]; }; results.First() .GetType() .GetProperties() .Select(p => p.Name) .ToList().ForEach(processColumName);