-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VB -> C#: Query syntax -Linq with multiple groups #298
Comments
I'll leave this open for now since its much more specific and achievable than #29 |
I've stopped this throwing an error, but not gone as far as completely fixing it (it'll still be a compile error from the consuming code). The output of the using System.Collections.Generic;
using System.Linq;
public partial class Class1
{
public void Foo()
{
var xs = new List<string>();
var y = from x in xs
group x by new { x.Length, Count = x.Count() };
}
} but I think should be using System.Collections.Generic;
using System.Linq;
public partial class Class1
{
public void Foo()
{
var xs = new List<string>();
var y = from x in xs
group x by new { x.Length, Count = x.Count() } into g
select new { Length = g.Key.Length, Count = g.Key.Count, Group = g.AsEnumerable() };
}
} |
Exact opposite error message (no elements versus more than one), but it might be related. Cannot convert QueryExpressionSyntax, System.InvalidOperationException: Sequence contains more than one element Dim gridDataSource = (From p In _Parent |
Input code
Erroneous output
Expected output
The text was updated successfully, but these errors were encountered: