C# Dictionary with Examples

Dictionary in C# C# has a class called “Dictionary” that can be used for many purposes. This tutorial shows how to declare, define, and initialize Dictionary in C# and how to use it in practice with code examples. See more tutorials: What is a list in C#? What is an array in C#? What is … Read more

C# Array with Examples

What is an array in C#? What exactly is an array in C#? Variables are used to hold values in programming, but a large number of variables may be needed at once. Writing code in this situation is difficult because each variable must be declared one by one. Lean more: List vs. Array in C# … Read more

C# List vs. Array

What is the Difference between arrays and lists in C#? In C#, there are two ways to handle multiple data: arrays and lists. Arrays and lists differ in the conditions used and initialization methods.Understanding the difference between arrays and lists and how they are initialized will broaden the scope of your project. Arrays and lists … Read more

C# List Length – Get the Length of a List

How to get the length of a list in C# In this tutorial, you will learn how to get the list length and how to use it in combination with other list methods in C#. Sometimes it is necessary to know the number of items in a list.Once the length of the list is known, … Read more

C# Sort Array with Examples

How to sort an array using Array Sort() method In this tutorial, you will learn how to sort an array in C# using the Array Sort method(). In addition to the list type, there is an array type as a data format for storing multiple data. For data in the list format, there is a … Read more

C# String Length – Get the Length of a String

How to get the length of a string This tutorial explains how to get the string length in C#. Once you know the length of a string, you can use it in string methods such as Remove(), Replace(), and Substring(). C# String Contains Substring String length syntax To get the length of a string, use … Read more

C# List – Using Lists in C#

What is a List in C#? C# has a List<T> data structure for handling values of the same data type together. Unlike arrays, Lists allow elements to be easily added or removed. Therefore, if the number of elements changes, you should use List<T>. A “List” is a collection of the same data type’s values. Lists, … Read more

C# Remove Duplicates from List

How to remove duplicates from a list in C# This tutorial explains how to remove duplicates from a list in C#. We will introduce three different ways how to remove duplicates from a list. When using the List <T> class, you may want to manage data without duplicate elements. However, with the current List<T> class, … Read more

C# Add Multiple Items to List

How to Add Multiple Items to a List in C# In this tutorial, you will learn how to add multiple items to a list in C#. To add an item to a list, we use the List<T>.Add() method. To add multiple items, we use List.AddRange() method. Learn more: What is a List in C#? Remove … Read more

What is StringBuilder in C# and How to Use it

StringBuilder in C# with Examples This tutorial describes what StringBuilder is in C# and how to use it. A StringBuilder is a class that presents a mutable string of characters. More C# tutorials: How to write to file in C# How to read text from a file in C# StringBuilder Initialization You can initialize a … Read more

C# Read Text File with StreamReader

How to Read Text from A File with StreamReader This tutorial describes how to read text from a file with StreamReader in C#. StreamReader provides various methods to read text from a file. Related tutorial: How to write to a file in C# with StreamWriter ReadToEnd Method You can write a program to read text from a … Read more

C# Write to File with the File Class and StreamWriter

How to Write Strings and Text to File in C# This tutorial describes how to write strings and text to a file with the File class and StreamWriter in C#. Related tutorial: How to read text from a file with StreamReader 1. Writing text to a file with the File class WriteAllText Method To write text to a … Read more

C# switch case Statements with Examples

How to Use switch case Statements in C# This tutorial describes how to use switch case statements in C#.  The switch statement chooses one of the blocks of code, which matches the switch expression to execute. We often use the switch-case statements when we test a single expression against three or more conditions. You can use if-else if there are only a few … Read more

C# if-else Statements with Examples

How to Use the if-else Statements in C# This tutorial describes how to use the if-else statement in C# programming language. An if statement decides which block of code to execute based on a specified condition. If the specified condition evaluates to true, then code inside the if statement block runs. If the specified condition is false, code inside the else statement block … Read more

C# while Loop Statement with Examples

How to use a while Loop Statement in C# This tutorial describes how to use a while loop statement in C#. A while loop is a control flow statement to execute a block of code while a specified condition evaluates to true. A while loop can execute zero or more times.  If you need to break out the loop, … Read more

MySQL LIKE Operator Pattern Matching and Examples

MySQL-LIKE-Operator-Pattern-Matching

In this tutorial, you will learn how to use the MySQL LIKE operator in the WHERE clause of a SELECT statement to retrieve records based on pattern matching. You can use MySQL LIKE to search for any records that meet the specified pattern. MySQL supports two wildcard characters, the percent sign (%) and the underscore sign (_), … Read more

C# for Loop Statement with Examples

How to Use the for Loop Statement in C# This tutorial describes how to use the C# for loop statement.A for loop is a control flow statement that you allow you to execute a block of code repeatedly. Related C# tutorials: C# foreach loop statement C# while loop statement The for Loop Syntax The syntax … Read more

Excel ROUNDUP Function with Examples

How to Use the ROUNDUP Function in Excel In this tutorial, you’ll learn how to use the Excel ROUNDUP function.  ROUNDUP is a function to round a number up away from 0. ROUNDUP Syntax The syntax of the ROUNDUP() function is as follows: =ROUNDUP(number, num_digits) Return value A rounded number Arguments number: the number that you want … Read more

Excel MIN Function with Examples

How to Use the MIN Function in Excel In this tutorial, you’ll learn how to use the Excel MIN function.  MIN is a function to get the smallest value in a set of values. MIN Syntax The syntax of the MIN() function is as follows: =MIN(value1, [value2], …) Arguments value1: The first argument value2: [Optional]. The second … Read more