-
Notifications
You must be signed in to change notification settings - Fork 238
VB -> C#:Linq group by queries bugs #1180
Open
Description
VB.Net input code
Dim result = From x in q Group By x.ID Into g Where g.AsEnumerable.Count > 1 Select g.ID
Erroneous output
var result = from x in q
group x by x.ID into Group
where g.AsEnumerable.Count > 1
select g.ID;
Expected output
var result = from x in q
group x by x.ID into g
where g.AsEnumerable.Count() > 1
select g.ID;
Details
https://icsharpcode.github.io/CodeConverter/ and latest extension version
nb. 2 issues - group name isn't coming through as "g" and Count is being treated as a property instead of a function call
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackNo fields configured for issues without a type.