Convert Column in Data Table to Array

Hello,

(From row in portfolio_population_csv.AsEnumerable() Select Convert.ToString(row(“Loan ID”))).ToArray()

I am using the above to convert a column in a datatable to an array of values. However, it returns System.Array{} rather than the array of values stored in the column. Please help, thank you.

Fine
kindly try with this expression
yourdatatablename.AsEnumerable().Select(Function (a) a.Field(of string)(“yourcolumnname”).ToString).ToArray()

Hope this would help you
Cheers @automationfinance