#8659·csharplang

[Proposal]: Dictionary expressions

Author: CyrusNajmabadiCreated Nov 19, 2024Updated Jul 2, 2026
LabelsProposal champion

Dictionary expressions

Summary

Dictionary Expressions are a continuation of the C# 12 Collection Expressions feature. They extend that system with a new terse syntax, ["mads": 21, "dustin": 22], for creating common dictionary values. Like with collection expressions, merging other dictionaries into these values is possible using the existing spread operator .. like so: [.. currentStudents, "mads": 21, "dustin": 22]

Design meetings