Photo by Andrew Neel on Unsplash
C# 12: Cool Feature
C# is getting more concise with every new release. #csharp12
List<string> first3DaysOfWeek =
["Sunday", "Monday", "Tuedsay"];
List<string> Last2DaysOfWeek =
["Thursday", "Friday", "Saturday"];
List<string> allDaysOfWeek = [..first3DaysOfWeek, "Wednesday", ..Last2DaysOfWeek];
allDaysOfWeek.Dump();