Month: May 2020
-
A shorter way to initialize Lists in C#
Threre is a trick that I wanted to show you today. A trick you can do initialize your lists a bit easier. Of course there’s some plumbing to be done. Let’s assume you have a class definition like the following. You would typically initialize a list of Foo type like the following. But if you […]