Arrays (Part 1): Introduction to arrays, declaring and initializing arrays
Welcome to our series on collections! We'll start with arrays, which are fixed-size collections of elements of the same type.
Welcome to our series on collections! We'll start with arrays, which are fixed-size collections of elements of the same type.
In this article, we'll explore more advanced array types: multi-dimensional arrays (like matrices) and jagged arrays (arrays of arrays).
In this final article of the series, we'll cover some common methods for working with collections and discuss best practices for choosing the right collection for your needs.
A Dictionary is a collection of key-value pairs. It's like a real-world dictionary where you look up a word (the key) to find its definition (the value).
Following our understanding of C# as a compiled language and the importance of type safety from Core Concepts the Base Class Library (BCL), which provides a wealth of foundational functionalities, and NuGet, the .NET package manager that allows you to tap into a vast collection of third-party libraries.
LINQ (Language Integrated Query) is a powerful feature in C# that allows you to write expressive queries over collections.
While arrays are useful, they have a fixed size. List is a generic collection that provides a more flexible, dynamic array.
Queues and Stacks are collections that enforce a specific order for adding and removing elements.
A HashSet is a collection that contains no duplicate elements. It's highly optimized for checking if an element is present in the collection.