What Custom Type Should I Choose?

Answering this question is not simple. It depends. If you need to implement a custom type that will act similarly to a value type (for example, a type that works with numbers), you should choose a Structure. If you need to implement an object for storing a large amount of data, it could be a good idea to choose a class. Such considerations are not mandatory, and their purpose is simply to let you think a little bit more about what you are going to implement and what your needs are.

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.