Understanding List vs Dictionary in C# With Examples

When it comes to working with collections in C#, you’ll often find yourself deciding between using a List or a Dictionary, as both serve for storing and managing data and belong to System.Collection.Generics namespace.

In this article, we’ll discuss List vs Dictionary in C# with Examples and will understand when to use each and why.

list vs dictionary in csharp

Read more >>

Program To Find Largest Number In An Array

In this article, we’ll write a program to find largest number in an array using programming languages such as C#, C++, Python, and Java. 

Definition of Array:

An array is a data structure that allows the storage of a collection of elements of the same data type under a single identifier. Array elements are stored in contiguous memory and are accessed using numeric indexes starting at 0. 

Arrays provide a structured way to organize and manage data and allow developers to work with multiple values of the same data type within a single variable.

C# Array
Array

Read more >>

Palindrome program in C# with examples

Palindrome – What’s That?

A palindrome is a sequence of characters that reads the same forward and backwards. In the context of numbers, A palindrome number is the same number when reversed.

  • Palindrome number examples: 121, 131, 34543, etc.
  •  Palindrome string examples include “level,” “radar,” and “madam.”

In this article, we’ll learn how to write a Palindrome program in C#.

Read more >>

How to remove special characters from a string in C#

Understanding the Challenge

Before diving into the code, let’s grasp the concept of special characters. Special characters are those that fall outside the realm of alphanumeric characters. 

They include symbols like '@', '#', '$', '%', and more. The goal is to create a C# program that efficiently removes these special characters from a given string and allowed characters are A-Z (uppercase or lowercase) and numbers (0-9).

Read more >>

Understanding the Difference Between Overriding and Overloading in C#

When it comes to object-oriented programming in C#, The two important concepts of Polymorphism are overriding and overloading. 

Overloading in C# is determined at compile-time and is static. It involves the creation of methods with the same name but different parameters within the same class.
In contrast, Overriding is a dynamic process determined at runtime, allowing you to provide a different implementation of a method in classes that inherit from a common base class.

In this article, we will learn the differences between overriding and overloading in C# with practical examples to make these concepts crystal clear.

Overriding and Overloading in C#

Read more >>