Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 9th, 2012  |  syntax: None  |  size: 0.47 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Unable to cast object of type 'ImagesFlag' to type 'System.Collections.Generic.IEnumerable`1[ImagesFlag]'
  2. Private Function GetFlag(ByVal ImagesFlagList As IQueryable(Of ImagesFlag)) As String
  3.  ImagesFlagList = ImagesFlagList.AsEnumerable().Concat(New ImagesFlag With _
  4.  {.Flag = "test"}).AsQueryable()
  5.  Return "something"
  6. End Function
  7.        
  8. .Concat(New ImagesFlag With {.Flag = "test"})
  9.        
  10. Dim array as ImagesFlag() = { new ImagesFlag With { .Flag = "test" } }
  11.        
  12. .Concat(array)