Not all generic types could be solved error is thrown when selecting variable type = System.Collections.Generic.IEnumerable<T>


#1

I am trying to use AsEnumerable method and CopyToDataTable method on a data table.

When I assign a variable to type = System.Collections.Generic.IEnumerable, the following error is prompted.
Type Browser - Not all generic types could be resolved error is thrown when changing variable type to System.Collections.Generic.IEnumerable

Does anyone know a way of solving this? Thanks.


#2

Hi @BonnieTang23,

Can you send me the exact error message.

Send the screenshot if it’s possible.

Regards,
Arivu


#3


#4

Hi @BonnieTang23,

Please select the type of the ienumerable. Based on your requirement select the type.(Object)
6200eae10caec962d0e900bb65da08302eadb56d
Regards,
Arivu


#5

Hey @BonnieTang23

There are 2 versions of IEnumnerable

1. System.Collections.IEnumerable.                          // Nongeneric
2. System.Collections.Generic.IEnumerable<T>               // Generic

When an interface has a Generic overload, we need to specify that generic type parameter.

Please select the needful Type parameter as per your need.

Regards…!!
Aksh


#6

Thanks for you information.


#7

Hi,

I am also getting the same error, not all generic types could be resolved. Were you able resolve the issue? If so please let me know how.

Thanks