ReadOnlySet is coming in .NET 9

by Jul 3, 2024Shorts

ReadOnlySet is coming in .NET 9

Say goodbye to issues with IReadOnlySet interface. No more casting back to mutable sets or creating custom read-only sets!

The latest Preview 6 version brings this new type.

I often prefer ISet above IList in Domain Driven Design.

Why? Because they guarantee unique elements in the collection.

It is often a requirement to prevent duplicate elements and ISet is perfect for this. Also, it comes with some nice methods to compare, merge, and create Subsets.

Remy van Duijkeren

Remy van Duijkeren

Power Platform Automator

Automation and integration aren’t just what I doβ€”they’re what I do best.

I help businesses work smarter by removing friction, automating what slows them down, and connecting systems that should’ve been talking all along.

 

Get My Thoughts on Automation & Development

Join my personal newsletter and get practical insights on building faster, integrating smarter, and removing friction in IT systems β€” especially on Power Platform and Dynamics 365.

Related