And here is the code that produces the error
Private Function GetFlag(ByVal ImagesFlagList As IQueryable(Of ImagesFlag)) As String
ImagesFlagList = ImagesFlagList.AsEnumerable().Concat(New ImagesFlag With _
{.Flag = "test"}).AsQueryable()
Return "something"
End Function
How can i cast this one?
Thank you
The issue is here
Concatwants a sequence, anIEnumerable<ImagesFlag>, and you are passing it just anImagesFlag. You will need to pass a sequence of flags, it could simply be an an array of that one item.And then you can use the array in the call to Concat