News

OK, I can make a new class. I then make a default constructor explicitly because I want it to do "stuff" like have a shared field called ClassCount that it increments each time the class is ...
This project demonstrates the concept of constructor overloading in C# through a simple example involving a Pizza class. Overloaded constructors allow you to create multiple constructors within a ...
Primary constructors in C# 12 can be used in classes and structs as well as record types. Here’s how they make your code cleaner and more concise. One of the striking new features in C# 12 is the ...
Optional and named parameters were added to the C# language for COM and Office interoperability, but these features are actually useful in a variety of ways. This month I'm going to explore two ...