Async and Await in C# - Asynchronous Programming

Async and Await     Async and await are the two most important keywords in C# while doing asynchronous programming. Async keyword is used to in the signature of a method to denote that this method will be executed asynchronously, if you are making a method async then you need to...

Extension Methods in C#

Extension Methods    Extension method in C# enable us to extend the functionality of a type without deriving from it, in simple terms we can add a method to an existing type. Extension method is a static method in a static class. Extension method will be very clear when you will see below...

Constructors in C#

 Constructors    Constructors are used to initialize the data members of when an instance of a class is created. Name of the constructor is always same like class name. Find the example of an constructor below.        class Test     {        public Test()  -------> Constructor      ...

Interfaces in C#

 Interfaces    Interfaces in C# are like pure abstract class. Any method in an interface can not have implementation and we can only provide the declaration of those methods. All the methods in an interface are by default marked as abstract and public and we need not to mention that. Using interface we can also achieve multiple inheritance in C#. We also can not create an object...

Abstract Class in C#

 Abstract Class     We can not create an object of an abstract class in C#, so we need to inherit the abstract class using another normal class and then we can use the methods and data members present in the abstract class.In the abstract classes we should not provide the whole implementation of logic but we should only have the outline of the class and then we can inherit...

OOPs Concept in C# - Polymorphism

 PolymorphismPolymorphism is one of the important concepts in OOPS, if you break the word into two parts then you will understand its meaning. Poly means many and morph means forms.So we will be discussing how polymorphism is used in C#. There are basically two main types of polymorphism in C# as below.Method Overloading.Method Overriding.So first we will understand method Overloading.Method...