Can you Concat two arrays to create one sequence that contains each array's values, one after the other?

Can you Concat two arrays to create one sequence that contains each array's values, one after the other?

Var ArrayA[]={4,8,7,9,4,7}

Var ArraB[] ={8,2,5,7,8,1}

Answers(vb)

Public Sub ConcatenateTwoArray()
Dim numbersA() = {4, 8, 7, 9, 4, 7}
Dim numbersB() = {8, 2, 5, 7, 8,1}

Dim allNumbers = numbersA.Concat(numbersB)

Console.WriteLine("All numbers from both arrays:")
For Each n In allNumbers
Console.WriteLine(n)
Next
End Sub

Output:{4,8,7,9,4,7,8,2,5,7,8,1}
Write small Program to generate Xml Document from table like (StudentRecord Table) using linq query
Write small Program to generate Xml Document from table like (StudentRecord Table) using linq query.....
What is Quantifiers in reference linq to Dataset?
Quantifier Operators return the Boolean value (either True or false) if some or all the elements in a sequence satisfy a condition.
Linq interview questions for experienced
Linq interview questions for experienced - What is PLINQ?, Which are the rules apply to a variable scope in lambda expressions?, What is the difference between the Select clause and SelectMany() method in LINQ?, What are the different implementations of LINQ?......
Post your comment