
- C# Basic Tutorial
- C# - Home
- C# - Overview
- C# - Environment
- C# - Program Structure
- C# - Basic Syntax
- C# - Data Types
- C# - Type Conversion
- C# - Variables
- C# - Constants
- C# - Operators
- C# - Decision Making
- C# - Loops
- C# - Encapsulation
- C# - Methods
- C# - Nullables
- C# - Arrays
- C# - Strings
- C# - Structure
- C# - Enums
- C# - Classes
- C# - Inheritance
- C# - Polymorphism
- C# - Operator Overloading
- C# - Interfaces
- C# - Namespaces
- C# - Preprocessor Directives
- C# - Regular Expressions
- C# - Exception Handling
- C# - File I/O
- C# Advanced Tutorial
- C# - Attributes
- C# - Reflection
- C# - Properties
- C# - Indexers
- C# - Delegates
- C# - Events
- C# - Collections
- C# - Generics
- C# - Anonymous Methods
- C# - Unsafe Codes
- C# - Multithreading
- C# Useful Resources
- C# - Questions and Answers
- C# - Quick Guide
- C# - Useful Resources
- C# - Discussion
How to concatenate Two Arrays in C#?
To concatenate two arrays in C#, let us first declare and initialize the array. Here, we have considered a string array −
string[] str = new string[] { "Hello","World" };
Now let us use the join() method to concatenate −.
string.Join(" ", str);
Now let us see the complete code to concatenate two arrays.
Example
using System; class Program { static void Main() { string[] str = new string[] { "Hello","World" }; string res = string.Join(" ", str); Console.WriteLine(res); } }
Output
Hello World
- Related Articles
- How to concatenate two arrays in java?
- Java Program to Concatenate Two Arrays
- Python Program to Concatenate Two Arrays
- How can I concatenate two arrays in java
- The easiest way to concatenate two arrays in PHP?
- How to concatenate two strings in C#?
- How to join or concatenate two lists in C#?
- How to compare two arrays in C#?
- C++ Program to Concatenate Two Strings
- How to initialize two-dimensional arrays in C#?
- How to concatenate two strings in Python?
- How to concatenate two slices in Golang?
- How to concatenate two strings in Golang?
- How do I concatenate or Merge Arrays in Swift?
- How to concatenate two strings using Java?

Advertisements