Twitter

Hi @factuursturennl, mooie interface, toffe features; met name het inboeken van crediteuren en de btw-overzichtjes!… https://t.co/16qWn4UoBc

3 weeks ago

Follow

Nice insights on crowd funding: https://t.co/obxkW0C9nj 😼

2 months ago

Follow

Rainbow CSV for #VSCode : simple and elegant 👍🌈 https://t.co/LDEpaO4TEB

2 months ago

Follow

Need finer control over your screen brightness? There a #PowerShell script for that: https://t.co/uUCyIaN6j6

2 months ago

Follow

Categories

Category: .NET

.NET

Dictionary-style settings as IOptions

I love how we can use appsettings.json files to configure applications in the .NET Core platform. The JSON-format feels a lot less bloated than the old XML appSettings config I used to work with. In this blog I’ll explore how to load a dictionary-style settings class as an IOption. This can be very useful when working with dependency injection.

.NET

Sorting a Dictionary on a List of Keys

I can almost hear you thinking: “What super-weird problem are you trying to solve!?” Well… it is kind of an abstract one! Imagine you have a dictionary of objects and a separate list of keys in a certain order. Now suppose you want an ordered dictionary based on the list of keys.