Captura de Nombres de Columnas en un array

Buen Día,

Estimados. en anteriores versiones de Uipath lograba obtener por medio del siguiente código, un array con los nombres de las columnas de una Datatable. sin embargo para la versión 22.4.6, ya no me es posible y me genera el siguiente error.

Captura1

Captura

(From dc in DTHorasExtra.Columns.Cast(Of DataColumn) select dc.ColumnName).toArray

agradecería si me pudiesen ayudar con esta novedad

Hi @Libardo

Welcome to the community

The DataColumn type is present in another namespace as well so please use it like this

(From d in dtHorasExtra.Columns.Cast(Of System.Data.DataColumn) Select d.ColumnName).ToArray()

cheers

Hi @Libardo

Welcome to UiPath community

In My environment it is working

image

And check with the dependency in the Imports

image

Check out this thread

Regards
Gokul