I have following LINQ query to get a set of data.
var fields = from row in datarows
from field in row
from col in columnnames
where field.Key == col
select new { ColumnName = col, FieldValue = field.Value };
The problem is that my code that handle the fields after this query fails because field.Value of some rows are returning null.
My goal is to assign an empty string if null is detected.
Something like if field.Value == null, then field.Value = ""
Is it possible to do so in linq query?