how to copy array in c# code example
Example 1: clone an array c#
//arraytype newArray = array.Clone() as arraytype;
float[] newFloats = oldFloats.Clone() as float[];
Example 2: array copy c#
unsortedArray.CopyTo(unsortedArray2 , 0);
//arraytype newArray = array.Clone() as arraytype;
float[] newFloats = oldFloats.Clone() as float[];
unsortedArray.CopyTo(unsortedArray2 , 0);