array to array copy
C#
3
Posts
3
Posters
0
Views
1
Watching
-
i want to copying array values to another array. my vaue is store the following array:
string[] path = Directory.GetFiles(filedate);
and I want to copy, stored value in path into path1.
string[] path1= ???
thanx
You can do this by using Array.Copy[^] method. :) Example:
string [] path = Directory.GetFiles(filedate);
if(path.Length > 0)
{
string [] path1 = new string[path.Length];
Array.Copy(path, path1, path.Length);
}:)
-
i want to copying array values to another array. my vaue is store the following array:
string[] path = Directory.GetFiles(filedate);
and I want to copy, stored value in path into path1.
string[] path1= ???
thanx
Why?