dotnet / docs

This repository contains .NET Documentation.
https://learn.microsoft.com/dotnet
Creative Commons Attribution 4.0 International
4.24k stars 5.88k forks source link

Clarify throw vs overwrite semantics for each approach #35654

Closed KathleenDollard closed 1 year ago

KathleenDollard commented 1 year ago

The para before the example states that Add vs read/write, but I think a casual user may not pick this up. I would suggest a note here (a callout) that explains that one throws and one overwrites.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

BartoszKlonowski commented 1 year ago

I'll work on this.