What is the Extension Method in C#?

Read full article on Infragistics blog I often get questions about the Extension Method in C#. The Extension Method was introduced in C# Version 3.0. and allows us to add functionalities in an existing class without modifying it, extending it, or re-compiling it. Essentially, the Extension Method allows us to add a new method to … Continue reading What is the Extension Method in C#?

Advertisements

Simplifying the Liskov Substitution Principle of SOLID in C#

Before I start writing this article, I want to thank Steve Smith for his great course on the same topic with Pluralsight. This post is inspired by that course. Read full article on the Infragistics blog here The Liskov Substitution Principle says that the object of a derived class should be able to replace an … Continue reading Simplifying the Liskov Substitution Principle of SOLID in C#

C-Sharp Basics: What is Checked and Unchecked operations

You may have come across questions, What is checked and unchecked primitive operations? How to handle overflow in C-Sharp? Does CLR handles overflow or developers? So let us start with understanding a program. Consider the code listed below:   On running you will get 44 as the output. There is one serious observation about the … Continue reading C-Sharp Basics: What is Checked and Unchecked operations