unity-game-enginesystem.datasystem.data.datatableasenumerable

Unity, How to use AsEnumerable


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!


Solution

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