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 letting you think a little bit more about what you are going to implement according to your needs.

Get Visual Basic® 2010 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.