Horje
how to concatenate two arrays in c# Code Example
c# merging two arrays
T[] array1 = getOneArray();
T[] array2 = getAnotherArray();
T[] newArray = new T[array1.Length + array2.Length];
Array.Copy(array1, newArray, array1.Length);
Array.Copy(array2, 0, newArray, array1.Length, array2.Length);
c# add 2 arrays
public static int[] AddArrays(int[] a, int[] b)
{
    int[] newArray = new int[a.Length];
    for (int i = 0; i<a.Length; i++)
    {
        newArray[i]=a[i]+b[i];
    }
    return newArray;
}
how to concatenate two arrays in c#
var z = new int[x.Length + y.Length];
x.CopyTo(z, 0);
y.CopyTo(z, x.Length);




Csharp

Related
append 2 arrays c# Code Example append 2 arrays c# Code Example
get all classes that extend a class c# Code Example get all classes that extend a class c# Code Example
c# object to json string Code Example c# object to json string Code Example
get array from column datatable c# Code Example get array from column datatable c# Code Example
c# float Code Example c# float Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
17