C# Basic Examples

In this post on C# Basic Examples, you will learn some of the simple code examples that you must know to start learning the C# language. In fact, these are the basic examples that we do to learn any new programming language. As the C# is an object-oriented language, so we can only write code …

IEqualityComparer Interface

Today I will explain an important collection interface in C# known as the IEqualityComparer Interface. In fact, in C#, we have both the Generic as well as non-generic interface. However, the non-generic interface is not type-safe. What’s more, the generic interface allows us to provide our own definition for equality comparison for the specific user-defined …