Hello,
I am trying to cast a collection of IList object but why I get this error message "'ToList' is not a member of 'System.Collections.IList'"
The DataRecords1() function below works but not the DataRecords2() function.
Public Function DataRecords1() As IList
Dim dataInformation = From xyz In _DBContextTable1
Return dataInformation.ToList() 'works
End Function
Public Function DataRecords2() As IList
Dim dataInformation As IList
dataInformation = From xyz In _DBContextTable1
Return dataInformation.ToList() 'not working 
End Function
Thanks,
-imperialx
View Complete Post