Skip to content

Tag Archives: CSharp-Interfaces

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
In Multiple inheritance, one class can have more than one superclass and inherit features from all its parent classes. As shown in the below diagram,… Read More
An abstract class is a way to achieve the abstraction in C#. An Abstract class is never intended to be instantiated directly. This class must… 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

Start Your Coding Journey Now!