我试图做一件看似简单的事情,但我遇到了问题。我找到的答案不起作用。我仍然遇到铸造异常:
Dim query = (From l In dePhl.cv_phil Where l.batch = strMmddyyyy
Select l.zipfile.Distinct)
Dim objFileList As List(Of String) = query.ToList() 'Error
错误:
'System.Collections.Generic.List(Of System.Collections.Generic.IEnumerable(Of Char))' 类型的值无法转换为 'System.Collections.Generic.List(Of String)'
它似乎对其他人有用!我究竟做错了什么?