Grouping Operators

The grouping concept is something that you already know if you ever worked with data. Given a products collection, dividing products into categories would provide a better organization of information. For example, consider the following Category class:

Class Category    Property CategoryID As Integer    Property CategoryName As StringEnd Class

Now consider the following review of the Product class, with a new CategoryID property:

Class Product    Property ProductID As Integer    Property ProductName As String    Property UnitPrice As Decimal    Property UnitsInStock As Integer    Property Discontinued As Boolean    Property CategoryID As IntegerEnd Class

At this point ...

Get Visual Basic 2015 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.