Skip to content

Tag Archives: CSharp-Interfaces

IDisposable is an interface defined in the System namespace. It is used to release managed and unmanaged resources. Implementing IDisposable interface compels us to implement… Read More
Events and event handlers are generally used in case of a Publisher-Subscriber design pattern where some kind of event has occurred in a particular class… Read More
In this article, we will see how to implement IDumpable interface through C#. The IDumpable interface is just a simple interface which has a Dump()… Read More
The interface is a special class in which we can declare all of our methods. Here in this problem, we are going to create an… Read More
C# provides an IComparable interface. This interface provides different types of type-specific comparison methods which means a value type or a class can implement this… Read More
IDictionary Interface is an interface that belongs to the collection module where we can access the elements by keys. Or we can say that the… Read More
The interface is just like a class, it can also have methods, properties, events, etc. as its members, but it only contains the declaration of… Read More
Structure is a value type and a collection of variables of different data types under a single unit. It is almost similar to a class… Read More
Abstract Class is the way to achieve abstraction. It is a special class that never be instantiated directly. This class should contain at least one… Read More
Like a class, Interface can have methods, properties, events, and indexers as its members. But interface will contain only the declaration of the members. The… Read More
Before C# 8.0 interfaces only contain the declaration of the members(methods, properties, events, and indexers), but from C# 8.0 it is allowed to add members… Read More
An Interface is a collection of loosely bound items that have a common functionality or attributes. Interfaces contain method signatures, properties, events etc. Interfaces are… Read More
A Delegate is an object which refers to a method or you can say it is a reference type variable that can hold a reference… Read More
Introduction: Multiple inheritance refers to the ability of a class to inherit from multiple base classes. C# does not support multiple inheritance of classes, but… Read More
An abstract class is a way to achieve abstraction in C#. To declare an abstract class, we use the abstract keyword. An Abstract class is… Read More