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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.