Advertisement
ashley-clarke

select many error

Apr 16th, 2012
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. Dim x = countDictionary.SelectMany(Function(o) o.Key.MasterCategory)
  2.  
  3. o.Key As Category
  4.  
  5. Results in:
  6.  
  7. Overload resolution failed because no accessible 'SelectMany' can be called with these arguments:
  8. Extension method 'Public Function SelectMany(Of TResult)(selector As System.Func(Of System.Collections.Generic.KeyValuePair(Of Category, System.Collections.Generic.Dictionary(Of Date, Integer)), Integer, System.Collections.Generic.IEnumerable(Of TResult))) As System.Collections.Generic.IEnumerable(Of TResult)' defined in 'System.Linq.Enumerable': Nested function does not have a signature that is compatible with delegate 'System.Func(Of System.Collections.Generic.KeyValuePair(Of Category, System.Collections.Generic.Dictionary(Of Date, Integer)), Integer, System.Collections.Generic.IEnumerable(Of TResult))'.
  9.  
  10. Extension method 'Public Function SelectMany(Of TResult)(selector As System.Func(Of System.Collections.Generic.KeyValuePair(Of Category, System.Collections.Generic.Dictionary(Of Date, Integer)), Integer, System.Collections.Generic.IEnumerable(Of TResult))) As System.Collections.Generic.IEnumerable(Of TResult)' defined in 'System.Linq.Enumerable': Data type(s) of the type parameter(s) cannot be inferred from these arguments. Specifying the data type(s) explicitly might correct this error.
  11.  
  12. Extension method 'Public Function SelectMany(Of TResult)(selector As System.Func(Of System.Collections.Generic.KeyValuePair(Of Category, System.Collections.Generic.Dictionary(Of Date, Integer)), System.Collections.Generic.IEnumerable(Of TResult))) As System.Collections.Generic.IEnumerable(Of TResult)' defined in 'System.Linq.Enumerable': Data type(s) of the type parameter(s) cannot be inferred from these arguments. Specifying the data type(s) explicitly might correct this error.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement