C# Optional ParametersAn optional parameter is a parameter that you can either include or omit when invoking the method. To […] May 7, 2020 in C# tagged parameter / optional by Mike
C# Unit TestsWikipedia says: “Unit tests are typically automated tests written and run by software developers to ensure that a […] January 26, 2020 in C# tagged programming / unit / tests / xunit / TDD / software / testing / test by Mike
C# Collection Initializer SyntaxC# collections can be initialized the same way as class objects using collection initializer syntax. There is an […] August 7, 2019 in C# tagged collection / initialize / initializor by Mike
C# Object Initializer SyntaxWhat is an Object Initializer in C#? Object initializers are the easiest way to assign values of an […] August 7, 2019 in C# tagged initializor / instantiate / syntax / object / initializer / initialization by Mike
C# Base KeywordThis post is about passing parameters to the base class constructor. Suppose our base class (that we are […] June 12, 2019 in C# tagged constructor / inheritance / keyword / base / passing / parameter / C# Inheritance by Mike
C# IteratorsEnumerable classes and enumerators are used extensively in the .NET collection classes, so it’s important that you’re familiar […] June 8, 2019 in C# tagged iterator / iterators / IEnumerator / C# Generics by Mike
C# Generic Enumeration InterfacesSo far in this series we have described non-generic enumeration interfaces. The non-generic interface forms are for legacy […] June 8, 2019 in C# tagged C# Generics by Mike
C# EnumeratorsTo understand enumerators, we’ll first look at C# arrays. This is for your understanding of enumerators. Generally you […] June 8, 2019 in C# tagged enumerators / array / C# Generics by Mike
C# Generic MethodsUnlike the other generics, a method is not a type but a member. You can declare generic methods […] June 8, 2019 in C# tagged method / generic / C# Generics by Mike
C# Generic ConstraintsIn the generic stack example, the stack did not do anything with the items it contained other than […] June 8, 2019 in C# tagged generic / constraint / C# Generics by Mike
C# Generics 2Here we’ll carry on from the first post and dig a little deeper. Generics allow you to declare […] June 8, 2019 in C# tagged C# / sharp / generics / C# Generics by Mike
Dependency InjectionWhat is Dependency Injection? Dependency Injection (DI) is a software design pattern. It allows us to develop loosely-coupled […] May 22, 2019 in C# tagged interface / constructor / dependency / injection by Mike