Understanding IEnumerable, ICollection, and IList in C#

In this article we will discuss about when to use IEnumerable, ICollection and IList with example. IEnumerable, ICollection and IList are important interfaces in C# for working with collection.  IEnumerable is the base of the ICollection and IList interfaces IEnumerable In this example, we create a List<string> object called fruits that contains three different fruits Then use a foreach loop to […]

Dependency Injection in Asp.net

Dependency Injection is a design pattern which allows us to develop Loosely Coupled software components.  It enables us to make the better management and reduce the complexity of the software in future. Its main purpose is to make code reusability and maintainable. It has three types:  Tightly Coupled in software design:  Tightly Coupled means two objects […]

Creating a WEB API project using Core first Approach

Introduction of ASP.NET Web API : ASP.NET Web API is a framework for building an easy HTTP web services that reaches the clients, including browser, mobile apps and so on. Web API is a programming interface that provides a communication between the software applications. It provides the interface for websites and client application to have […]

Creating a WEB API project using Code first Approach

Introduction of ASP.NET Web API : ASP.NET Web API is a framework for building an easy HTTP web services that reaches the clients, including browser, mobile apps and so on. Web API is a programming interface that provides a communication between the software applications. It provides the interface for websites and client application to have […]