Skip to content

Latest commit

 

History

History

README.md

ArraysListsDictionaries - Arrays, Lists, and Dictionaries in C#

YouTube Blog Newsletter All Links LinkedIn

This project provides beginner-friendly examples of the three most commonly used collection types in C#: arrays, lists, and dictionaries. Each collection type is demonstrated with practical code showing how to create, populate, iterate, and modify elements. The examples help illustrate when and why you might choose one collection over another.

The array example uses a fixed-size string array of days of the week, while the list example shows dynamic sizing with List<string> including add and modify operations. The dictionary example demonstrates Dictionary<int, string> for key-value pair storage. Each section includes iteration patterns using foreach loops, making this a useful reference for developers getting started with C# collections.

Getting Started

Prerequisites

  • .NET 7.0 SDK or later

Running the Project

cd ArraysListsDictionaries
dotnet run

Related Resources

Blog Articles

Newsletter

If you found this useful and you want to learn more about C#, .NET, and software engineering, subscribe to the free Dev Leader Weekly newsletter:

Subscribe to Dev Leader Weekly

Connect with Dev Leader


BrandGhost

Powered by BrandGhost 👻