chiprook
← Software
SoftwareOctober 16, 2026, 08:41

C# 15 adds with() for collection constructor arguments

C# 15, shipping with .NET 11, introduces a with(...) element in collection expressions whose arguments go to the constructor or factory, such as a HashSet comparer. The feature is available in .NET 11 RC1, released September 8, 2026 with a go-live license.

C# 15 adds with() for collection constructor arguments
#Microsoft#C##.NET
Read next
Software

C# 15 adds union types with compiler-checked exhaustive switches

Software

C# 15 adds labeled break and continue for nested loops

Policy

Apple accuses OpenAI of adding new arguments in trade secrets case

Software

Atlassian Team '26 Europe: Service Collection adds scheduling, auto-setup, device monitoring