How to Combine Array Elements in C#

Hi Programmers. Welcome to Ozanecare. this article i am going to write the program to combine Array elements using c# language. we can merge array elements by using Join method. the Join method accept four parameter. First parameter comma delimiter second array string third index and last total count. the below program st that’s comma delimiter, i have given space, str that’s string elements and in last i have given 3 so it will count total elements three. so that’s it returns output Iphone Nokia Samsung. see below image.

2.we can concatenate array elements by using List string and use Join method. see below image.

Happy Coding…Thanks.

Post Author: adama