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 this always seemed so counterproductive to me, I thought the point of AI was supposed to be precisely that you wouldn't need to look in the docs in the first place, if you need to be instructed on how to prompt it, what the hell is it even for?

I mean of course I know really that the answer is "the docs don't exist to help people, they exist to push the ai" but come on man, push it in a way that makes sense (if you have one)

@andrewt
Also, if I know I want to initialize a dictionary, shouldn't I just... initialize the damn dictionary? I mean, come on, I am a lazy one, but I have my limits.
@jenniferplusplus
@ozzelot @jenniferplusplus yeah, this really seems like a case where you'll need to internalise this knowledge sooner rather than later, probably worth doing this one old school even if just as an exercise