Get all column names of a DataTable into string array using (LINQ/Predicate)

后端 未结 0 1528
谎友^
谎友^ 2020-12-23 06:13

I know we can easily do this by a simple loop, but I want to persue this LINQ/Predicate?

string[] columnNames = dt.Columns.?

or

string[] columnNames = from         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题