From the course: Visual Basic Essential Training

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Explore the collection classes

Explore the collection classes - Visual Basic Tutorial

From the course: Visual Basic Essential Training

Explore the collection classes

- [Instructor] Working with groups and sets of data is a fundamental part of programming, and .NET provides several tools to make this task more efficient and versatile. In this chapter, we'll explore the various options available on .NET for managing data sets. Visual Basic offers three distinct categories of types for working with sets. They are listed in the preferred order of usage. Generic collections are highly recommended for most scenarios, offering type safety, performance, and flexibility. They are the modern standard for working with groups of data in .NET. Arrays are simple and efficient. They are ideal for fixed size structures where minimal overhead is required. Then last, we have the non-generic collections. These were introduced in the early releases of .NET. They should generally be avoided due to their lack of type safety and inefficiency compared to more modern options. Arrays are a fundamental concept taught at every computer science and programming course. They…

Contents