
How To Ensure Correct Struct Initialization In C#
Jul 9, 2024
Categories: C#
How to write structs in a way that their fields always hold the desired value at initialization
Read
Indices And Ranges in C#
Jul 1, 2024
Categories: C#
What are the Index and Range structs, and how do you use the index-from-end and range operators in C#?
Read
What are Indexers and how to use them in C#
Jun 24, 2024
Categories: C#
How to use Indexers in custom collections, what are the Indexers set and get accessors, how to have parameters that are not integers, create indexers with multiple parameters and how multiple indexers in the same class work.
Read
The Tell Don't Ask Principle
Jun 17, 2024
Categories: Architecture
What is the tell don't ask principle and the different ways to apply it in you code with examples
Read
What Is Primitive Obsession And How To Avoid It
Jun 11, 2024
Categories: Architecture, C#
What is primitive obsession, the different kinds of primitive obsession, consequences it can have and solutions for each case
Read
Optional Parameters In Constructor Vs Init Properties
Jun 4, 2024
Categories: C#
When Init Properties in C# are better suited for object initialization than optional parameters in the type's constructor
Read