Unity, How to use AsEnumerable

236 Views Asked by At

I need to use AsEnumerable() on a DataTable in Unity, but it seems the Unity version of System.Data doesn't have that method!

enter image description here

I tried to import the VS version of dll into the asset, but it told me that Multiple assemblies with equivalent identity have been imported.

Could somebody please be so kind and teach me what should I do!?

Much appreciated!

1

There are 1 best solutions below

4
On BEST ANSWER

The method AsEnumerable() is an extension fo the class Datatable, you need to add the System.Data.DataSetExtensions.dll into your assets.