We can use String.Join method to create a new string from an array of string. Let’ say I have a array of the some words and i want to create a sentence from this array then i can use The String.Join method with an array and a separator string. Continue reading “Create a new string from an array of string through String.Join method”
This article demonstrate how we can get the list of the files according specific search pattern with excluding some files. Suppose if a folder contains the following files: Continue reading “Exclude specific files in file search with in a directory in C#”
Today i need to re size a two dimensional array in my project. we know that C# does not contain any statement like Redim or Redim Preserve of the vb.net. So i wrote the following function to re size an two dimensional array in C#. Continue reading “How to resize multidimensional array in C#?”
Continue reading “Search for an element in array with Array.Find method in c#”
If you want to copy a range of the elements from one array to another then we can use Array.ConstrainedCopy Method. In this article i will try to understand that how we can copy a range of elements from one array to another.
Continue reading “How to copy a range of elements from one array to another in c#”
In this article i will describe two methods for merging two array in single array using C#
You can use the System.Collections.Generic.List class and simple Resize and Copy methods of the Array class for doing this.
Continue reading “How to merge two or more array in single array in C#”
Array is the group or collection of similar datatypes object and it is member of the system namespace whereas ‘Arraylist’ is the group of variables or object with different datatypes and it implement the ‘IList’ interface using an array whose size is dynamically increased as required.
Continue reading “How to Convert Arraylist to Array in .net”