VB Documentation - Collections

This page provides information on the Collections language in Visual Basic.

Introduction

The Collections language is a key part of VB.NET, used to create data structures and manage collections efficiently.

It emphasizes immutability and avoids side effects, making code cleaner and more reliable.

Key Features

Examples

Here's a simple example:

        
        using System;
        using System.Collections.Generic;

        public class Example {
            public static void Main(string[] args) {
                List numbers = new List();
                numbers.Add(1);
                numbers.Add(2);
                numbers.Add(3);

                Console.WriteLine(numbers);
            }
        }
        

Resources

See the official documentation for detailed information: System.Collections.Generic