I am converting a c# LINQ example:
var query = from m in typeof(string).GetMethods()
where m.IsStatic == true
orderby m.Name
group m by m.Name into g
orderby g.Count()
select new { name = g.Key, overloads = g.Count() };
In the above C# the g is an IGrouping but in the VB below it's instead an IEnumerable and thus the g.Key isn't resolving.
Dim query = From m In GetType(String).GetMethods() _
Where m.IsStatic = True _
Order By m.Name _
Group m By m.Name Into g = Group _
Order By g.Count _
Select name = g.Key, [overloads] = g.Count()
How do I do this in VB?