Okay, so, at this point I'm sure you're just trolling.

But, I'll make a last attempt anyway.

It's the way you allow classes to use the collection initializer. It's a C# thing. I've linked the documentation.

I'm not gonna preach theory, but, I'm certain you already know it's not the decorator pattern being applied here, just look at the constructor...

Sure, there are elements similar to the decorator, but, you can't really decorate anything with this class.

Written by

Tech writer with 621K+ views. Sharing my opinion and what I learn. Danish C# backend engineer in FinTech. Ex Big4 senior tech consultant.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store