Understanding Begins with Expressive Names
Understanding code is the first step to modifying it.
Understanding code is the first step to modifying it.
Your code reflects neither your beliefs, nor your upbringing, nor your character.
In C# the question mark has 5 meanings as of C# 8.
Have you had to compare two collections and execute some logic based on whether the item is in the source collection, in the comparing collection or in both? Yeah, me too, I needed to merge data from the UI and the database. I couldn’t find a good solution, so, I wrote a collection comparer.
At some point in an application’s development, usually, fairly early on, you realize the application is slow. After some research, the culprit is, unnecessarily retrieving the same data, and a light goes off, and you think: “I need some caching.”
If you must run code in a constructor. I’d look for a different way, but if you must, here’s one way.