Hi, for the past hour i have tried to convert a C# code to VB and i have failed to do so, here is my C# code below
var moviesByCategories = movies.GroupBy(x => x.Category)
.Select(x => new MovieCategory { Title = x.Key, Items = x.ToList() });
how can i do the same thing in Visual Basic?