Author: Marinko Spasojevic

C# Intermediate – Queue, Stack, And Hashtable in C#

In this article, we are going to talk about the queue, stack and hashtable collections in C#, how to use them and how to use the methods they provide. If you want to see complete navigation of this tutorial, you can do that here C# Intermediate Tutorial. To download the source code, you can visit Collections in C# Source Code.  So, let’s start. We are going to split this article into the following sections: Queue Collection The Most Common Methods and Properties Stack Collection Related Methods and Properties Hashtable Common Methods In The Hashtable Collection Common Properties in the...

Read More

Getting Started With Angular Material

In this article, we are going to show you how to prepare our Angular project and how to install Angular Material in a few simple steps. But first things first. Before we start with the Angular Material features, we need to create the project first. So let’s dive right into it. For the complete navigation and all the basic instructions of the Angular Material series, check out: Introduction of the Angular Material series. The source code is available at GitHub Getting Started With Angular Material – Source Code We are going to divide this post into several sections: Project Creation Angular Material...

Read More

C# Intermediate – Generics in C#

C# provides generics to help us remove the need for casting, to improve type safety and make it easier to create generic classes and generic methods. If you want to see complete navigation of this tutorial, you can do that here C# Intermediate Tutorial. To download the source code, you can visit Generics in C# Source Code.  We are going to split this article into the following sections: Generic Type T Constraints with Generics Generic Methods Conclusion Generic Type T To create a generic class, we need to provide a type between angle brackets: C# 1234 public class CollectionInitializer<T>{    ...}...

Read More

C# Intermediate – Abstract Classes in C#

Different classes may implement the same interface, and that is the common case in a software development. What is common as well is that the method from that interface can have the same implementation in those classes. That could be a signal that we are doing something wrong. We don’t want to repeat the code in our classes, but to reuse the common implementation. To fix this, we can extract this common implementation to a base class, and make our classes implement a base class and then make the base class implement an interface. This will solve our problem,...

Read More

C# Intermediate – Interfaces in C#

Inheriting from a class is a powerful mechanism, but the real inheritance power comes from an interface. An interface provides the members that a class which inherits from an interface must implement. We can look at the interface as a contract which states that a class that implements an interface must implement all the members from it. If you want to see complete navigation of this tutorial, you can do that here C# Intermediate Tutorial. To download the source code, you can visit Interfaces in C# Source Code.  We are going to split this article into the following sections:...

Read More