I have a code like below which is initializing an array arrayEdgeFilterRanges through splitting an string edgeFilterRanges using:
string[] arrayEdgeFilterRanges = edgeFilterRanges.Split(new string[] {}, StringSplitOptions.RemoveEmptyEntries);
but I need to add a general item as 0 to the first of array. I know that I can not use the arrayEdgeFilterRanges.Insert(0, "0"); since the array got fixed size on initializing statement
How can I add the item 0 at first of array?
string edgeFilterRanges = "4,2,1";
string[] arrayEdgeFilterRanges = edgeFilterRanges.Split(new string[] {}, StringSplitOptions.RemoveEmptyEntries);
foreach (string i in arrayEdgeFilterRanges)
{
System.Console.Write(i);
}