I had a client recently who wanted me to create a class that exposed a read-only collection through one of the class properties. While my client was willing to let other programs loop through that ...
Take advantage of default interface methods in C# 8.0 to add new methods to an interface without breaking existing implementations. One of the new and interesting features in C# 8.0 is the support for ...
When designing applications, it is important to know when to use an abstract class and when to use an interface. Although abstract classes and interfaces seem similar in some ways, there are key ...
Even if you're not working in the Microsoft .NET Framework 4.5, .NET provides you with a way to create a read-only collection or to convert an existing List into a read-only collection. I had a client ...