1
Vote

Unable to Group By in VB

description

I seem to be completely unable to utilize Bindable Linq in a Group By query. I've downloaded the latest codebase and compiled without a problem.
 
As an example of my problem, the following standard Linq works fine:
 
DataContext = From p In people Group p By p.Gender Into Items = Group
 
But when I add .AsBindable like this...
 
DataContext = From p In people.AsBindable() Group p By p.Gender Into Items = Group
 
...I get the following compilation error:
 
Overload resolution failed because no accessible 'GroupBy' is most specific for these arguments:
Extension method 'Public Function GroupBy(Of TKey, TResult)(keySelector As System.Func(Of Person, TKey), resultSelector As System.Func(Of TKey, System.Collections.Generic.IEnumerable(Of Person), TResult), comparer As System.Collections.Generic.IEqualityComparer(Of TKey)) As System.Collections.Generic.IEnumerable(Of TResult)' defined in 'System.Linq.Enumerable': Not most specific.
Extension method 'Public Function GroupBy(Of Person.Genders, Person, <anonymous type>)(keySelector As System.Func(Of Person, Person.Genders), elementSelector As System.Func(Of Person, Person), resultSelector As System.Func(Of Person.Genders, System.Collections.Generic.IEnumerable(Of Person), <anonymous type>)) As System.Collections.Generic.IEnumerable(Of <anonymous type>)' defined in 'System.Linq.Enumerable': Not most specific.
Extension method 'Public Function GroupBy(Of TKey, TResult)(keySelector As System.Linq.Expressions.Expression(Of System.Func(Of Person, TKey)), resultSelector As System.Linq.Expressions.Expression(Of System.Func(Of TKey, Bindable.Linq.Interfaces.IBindableCollection(Of Person), TResult)), comparer As System.Collections.Generic.IEqualityComparer(Of TKey)) As Bindable.Linq.Interfaces.IBindableCollection(Of TResult)' defined in 'Bindable.Linq.BindableEnumerable': Not most specific.
Extension method 'Public Function GroupBy(Of Person.Genders, Person, <anonymous type>)(keySelector As System.Linq.Expressions.Expression(Of System.Func(Of Person, Person.Genders)), elementSelector As System.Linq.Expressions.Expression(Of System.Func(Of Person, Person)), resultSelector As System.Linq.Expressions.Expression(Of System.Func(Of Person.Genders, Bindable.Linq.Interfaces.IBindableCollection(Of Person), <anonymous type>))) As Bindable.Linq.Interfaces.IBindableCollection(Of <anonymous type>)' defined in 'Bindable.Linq.BindableEnumerable': Not most specific.
Extension method 'Public Function GroupBy(Of TKey, TResult)(keySelector As System.Linq.Expressions.Expression(Of System.Func(Of Person, TKey)), resultSelector As System.Linq.Expressions.Expression(Of System.Func(Of TKey, Bindable.Linq.Interfaces.IBindableCollection(Of Person), TResult)), dependencyAnalysisMode As Bindable.Linq.DependencyDiscovery) As Bindable.Linq.Interfaces.IBindableCollection(Of TResult)' defined in 'Bindable.Linq.BindableEnumerable': Not most specific.    
 
I'm not sure if this is a problem with my syntax (I've tried every variation I can come up with) or if Bindable Linq needs some tweaking to be compatible with VB.

file attachments

comments