Optional parameters and named arguments were added to C# in version 4.0.They are an important feature of the language which makes working with methods easier in many scenarios. Named arguments Often we need to call methods which have lot of … [Continue reading] about Optional parameters and named arguments in C# 4.0
Extension Methods in C#
Extension methods in C# are used to add methods to an existing type without modifying the type.If there is some existing type then for adding some new functionality to the type we can either modify the type or derive a new type that extends the … [Continue reading] about Extension Methods in C#
Open closed principle
SOLID is an acronym for the five design principles.These design principles help create more maintainable and bug free applications.The five design principles in SOLID are: S stands for the Single Responsibility Principle O stands for the Open … [Continue reading] about Open closed principle
Repository pattern in c#
Before implementing Repository pattern in C# ,it would be useful to first understand what is Repository Design Pattern.It is about how an application stores and retrieves data from the data stores which actually stores the application data. In a … [Continue reading] about Repository pattern in c#
Dependency Inversion Principle
Any software application consists of numerous classes and the different classes provides different functionalities.So any object oriented application is composed of many classes which interact with each other to achieve the required … [Continue reading] about Dependency Inversion Principle