C#

C#

How to Implement IDisposable Interface in C#

In this article we will understand the IDisposable interface of the Microsoft System library. Below are the points that we will look upon: Why is IDisposable interface required Unmanaged memory The .NET Garbage Collector Disposable interface in detail The Using block along with Dispose System Libraries that use IDisposable interface Conclusion Why is the IDisposable …

How to Implement IDisposable Interface in C# Read More »

C# LINQ Distinct or Group By. Get Distinct values from Collection of Objects

Microsoft has provided the LINQ Methods under the System.LINQ namespace. It is a very powerful tool to work upon collections/Lists. Let us quickly understand the syntax and concepts for implementing the Distinct method of LINQ under different circumstances. Below is the list of different ways that we will discuss to fetch Distinct Objects. Using Distinct …

C# LINQ Distinct or Group By. Get Distinct values from Collection of Objects Read More »

Dependency Injection Interview Questions – C#

If you are a software developer, you must not be alien to the dependency injection design pattern. Dependency injection (long form for DI) design pattern is broadly used in applications to manage dependencies for different components, especially in enterprise level applications. Dependency injection is so useful that even in front end frameworks, like Angular, provides …

Dependency Injection Interview Questions – C# Read More »