Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 2
array operation in c#
how to copy the value of an array to another array in c#. please help
1 Resposta
+ 8
// Use Array.copy() For Example:
int[] a = {1, 2, 3, 4, 5};
int[] b = new int[4];
Array.Copy(a, 0, b, 1, 4);
ā¢ a = source array
ā¢ 0 = start index in source array
ā¢ b = destination array
ā¢ 1 = start index in destination array
ā¢ 4 = elements to copy