Software development tutorials and demos lasting no more than 60 seconds.
No in-depth explanations, no off-topic rants, and no slides. One small topic per video - only code, console, config, and client.
All videos come with a corresponding blog entry, and all code is available on GitHub.
Which version of .NET Core is installed
Turns out there’s a super easy command for seeing which version of .NET Core is installed on your desktop or server:
Don't be afraid of using the .NET CLI and skipping Visual Studio. Visual Studio Code is a fantastic IDE for .NET projects - obviously not as powerful as Visual Studio, but it's significantly lighter and faster, and the integrated terminal is desperately needed in Visual Studio. The .NET CLI is actually incredibly easy to work with. This video shows some of the basic commands. See the documentation for more. View code on GitHub
The switch statement in C# has been there since the beginning. Originally it was for a simple data type only, and you could only go through cases of constant values. Now there's so much more. View code on GitHub
C# now includes the concept of a "nullable" reference type. The name is a bit confusing, because reference type variables were always nullable. What they really should have called it is "non-nullable", since that's what's different now. In the past, you could declare a string variable or property, and it was perfectly valid to assign that to null. So if you're going to use it, you need to do a null-check to avoid exceptions. Now, if you turn on the flag in your project, the compiler will help you avoid null exceptions, by forcing you to define when a variable or property is allowed to be null, and there are warnings or errors to alert you when you're trying to potentially set a non-nullable variable to null. View code on GitHub