C# Optional Parameters
An optional parameter is a parameter that you can either include or omit when invoking the method. To […]
An optional parameter is a parameter that you can either include or omit when invoking the method. To […]
Wikipedia says: “Unit tests are typically automated tests written and run by software developers to ensure that a […]
C# collections can be initialized the same way as class objects using collection initializer syntax. There is an […]
What is an Object Initializer in C#? Object initializers are the easiest way to assign values of an […]
This post is about passing parameters to the base class constructor. Suppose our base class (that we are […]
Enumerable classes and enumerators are used extensively in the .NET collection classes, so it’s important that you’re familiar […]
So far in this series we have described non-generic enumeration interfaces. The non-generic interface forms are for legacy […]
To understand enumerators, we’ll first look at C# arrays. This is for your understanding of enumerators. Generally you […]
Unlike the other generics, a method is not a type but a member. You can declare generic methods […]
In the generic stack example, the stack did not do anything with the items it contained other than […]
Here we’ll carry on from the first post and dig a little deeper. Generics allow you to declare […]
What is Dependency Injection? Dependency Injection (DI) is a software design pattern. It allows us to develop loosely-coupled […]