Jon Skeet 12/31/2025

Changing Immutable Collections

Read Original

The article details a C# developer's migration from using ImmutableList<T> and ImmutableDictionary<TKey, TValue> to ImmutableArray<T> and FrozenDictionary<TKey, TValue>. It explains the two distinct usage patterns for immutable collections and why the latter types offer better performance for a 'create-once' pattern. The post covers the practical steps and considerations involved in the migration process within a real project.

Changing Immutable Collections

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
Quoting Thariq Shihipar
Simon Willison 2 votes
2
Container queries are rad AF!
Chris Ferdinandi 1 votes
3
Top picks — 2026 January
Paweł Grzybek 1 votes
4
In Praise of –dry-run
Henrik Warne 1 votes
6
Vibe coding your first iOS app
William Denniss 1 votes