How to initialize a dictionary with a collection initializer - C#

Learn how to initialize a dictionary in C#, using either the Add method or an index initializer. This example shows both options.

These are the official docs for the programming language. Fuck all the way off with this
@jenniferplusplus i want to learn how to program for fun but i have been hesitant with using git hub for being a microsoft website.
@MeimeiTakuto At this point I think that's wise. Don't let it put you off of learning something you want to learn! But do store your code somewhere else. Gitlab is somewhat better. Codeberg seems to be the most viable ethically operated alternative.
@jenniferplusplus Thank you for the suggestion! is codeberg another site like git hub where you can save and share code? #bluesky #bridyfed
@MeimeiTakuto exactly. It's developed and operated by a European nonprofit. The features and behavior are pretty similar to github. And the central feature of providing git code repositories is exactly the same