-
Working with Singleton Design Pattern
Hello friends, I am here to continue the learning series regarding Design Patterns. Today we will go through one of the popular design pattern called Singleton. In case you have not had a look at our first article, go through the following link: Design Patterns What, Why? Before talking about its implementation let’s begin with…
-
Implicit and Explicit Interface Implementation using C#
Hello guys, An interface in C# is usually used to create loosely-coupled and contract-based designs. It can contain signatures (declarations) of the Methods, Properties, Indexers and Events. The implementation of the methods/properties and so on is done in the class that implements the interface. An interface can inherit one or more interfaces, in other words it…
-
Calculate Fibonacci Series
Hello mates, This is one of the most asked question in interviews, calculating and printing Fibonacci series. Let’s first try the iterative approach that is simple and prints all the Fibonacci series by passing the length. Please note that we are starting the series from 0 (instead of 1). public static voidFibonacci_Iterative(int len) { int a = 0, b = 1, c = 0; Console.Write(“{0} {1}”, a,b); for (int i = 2; i < len; i++) { c= a + b;…
-
Working With Async Main In C# 7.1
Hello folks! I am here to present the series related to C# 7.1’s new features. In the first part, we will be going through one of the important features called async main. async main Starting with C# 7.1, the main function that is the entry point of the application can have async. Before C# 7.1,…
-
Threads Inception in .NET
Hello guys, Threading in .Net is an important topic. I have seen people unable to understand the nuances of processes, threads and how they are related in .Net and also in general. In the series of articles around threading, I will try to present the concepts in the simplest way possible so that it can…
-
Design Patterns What, Why?
Hi guys. Design patterns are an important consideration when designing or developing any software systems or solutions. There is so much buzz around patterns. At the same time, we often get confused about their use. Basically we get questions like the following: What design patterns are Why to use them When to use them How…
