A string array in C# can be created, initialized, and assigned values as described below. Declaring a string type array: string[] strArr; Initializing the string array: As Continue Reading
C# Tutorials
The array is data structures in C# that can store multiple variables of the same type. For example, you want to store the product_id of the products Continue Reading
A message box or dialog box is used to interact with the users of your application. The purpose of using a message box may include notifying about Continue Reading
The Random class of C# can be used for creating the practically usable random numbers like password generator. A few main points about the Random class are: Continue Reading
Depending on the requirement, C# offers a few ways to compare strings. For example, if you only require to check whether two strings are the same (ignoring Continue Reading
The C# for loop is a way to execute a block of code to the specified number of times. The statements inside the for loop keep on Continue Reading
A tuple, introduced in .Net version 4.1, can be defined as a data structure having a specific number and sequence of elements. For example, a tuple with Continue Reading
As creating a List<T> in C#, its items may be in random order whether added by using the Add or Insert methods etc. In this tutorial, I Continue Reading
The Trim() method of strings is used to remove the leading and trailing spaces from the specified string. You may use the trim() method in the following Continue Reading
A few important points to learn about ArrayList Class before we go into its methods and examples: C# ArrayList Class can be defined as an ordered collection Continue Reading
A few main points about the List in C# The C# List <T> is the part of System.Collection.Generic Namespace that represents a strongly typed list of objects. Continue Reading
In C#, a string can be broken by one or more given delimiters by using the Split method. The simple way of using the Split method can Continue Reading
The string to int conversion may be required for different reasons. Commonly, this is required if you are taking the user input for numbers and this may Continue Reading
The string replace method is used to return a new string after changing all occurrences of the given substring in the source string. In C#, the string Continue Reading
The switch case is a decision making statement like the if else statement in C#. The switch statement is used as an alternative (and elegantly way) to Continue Reading