SyntaxFix
Write A Post
Hire A Developer
Questions
Use
var arrayNames = (from DataColumn x in dt.Columns select x.ColumnName).ToArray();