Using Immutable Data Structures in C# and .NET

Learn how immutability can make your code cleaner, safer, and reduce runtime errors in C# applications.

Duration: 60 minutes
Level: Intermediate
Presented: 4 times
C# .NET Functional Programming Best Practices

Abstract

Immutability is a cornerstone of functional programming, but its benefits extend far beyond functional languages. This session explores how to leverage immutable data structures in C# and .NET to write safer, more maintainable code.

We'll cover the built-in immutable collections, record types, and patterns for working with immutable data. You'll learn how immutability prevents bugs, simplifies concurrent programming, and makes your code easier to reason about. Real-world examples will demonstrate how to gradually introduce immutability into existing codebases.

Presentation History

SDD

London, UK • May 12-16, 2025

SDD

London, UK • May 15-16, 2024

NDC Oslo

Oslo, Norway • November 29-December 3, 2021

NDC London

London, UK • January 27-31, 2020

Interested in this talk?

I'd be happy to present this talk at your conference, meetup, or corporate event. Let's discuss how this session can bring value to your audience.