Which will crash if the
of the column is not a
You might also want to note that this only works for typed
This version works for all
s, can handle any
, and handles
table.Rows.AsQueryable<datarow>() .Select(row => (row["fieldname"] ?? "").ToString()) .ToArray();
Doing that 'computer thing' ever since the C64.
Sometimes I feel that being a programmer is much like being a doctor: You just have to know everything and if you don't, something dies.
Either being an appliction or a patient.
Oddly enough, more people care about the death of their application, than the massacre op people...