Tag: Array

How to convert Array to List in C#?

Want to convert array of strings to List of strings in C# ? . Below is a sample code to illustrate this. How to convert Array to List in C#? using System; using System.Collections.Generic; using …

How to Reverse an Array in C# ?

If you need to reverse the values of an array , you could use the Reverse extension method. How to Reverse an Array in C# ? For example , assume that the array of integer …

Object and Collection Initializer in C#

The Object Initializer and Collection Initializer are similar to initialized Array and Object Constructor where we are able to set the properties of the newly created objects or multiple instances of the new object in …