Answers for "c# array.join"

C#
3

c# join string array

var combined = String.Join(",", new String[]{"a","b"});
// a,b
Posted by: Guest on June-10-2020
2

c# array.join

using System;
public class Demo {
   public static void Main(string[] args) {
      string[] strArr = {"AB", "BC", "CD", "DE", "EF", "FG", "GH", "IJ" };
      Console.WriteLine("String Array...");
      foreach(string s in strArr) {
         Console.WriteLine(s);
      }
      string str = string.Join("*", strArr);
      Console.WriteLine("Result (after joining) = " + str);
   }
}
Posted by: Guest on September-02-2020
0

c# array.join

String Array...
AB
BC
CD
DE
EF
FG
GH
IJ
Result (after joining) = AB*BC*CD*DE*EF*FG*GH*IJ
Posted by: Guest on September-02-2020

C# Answers by Framework

Browse Popular Code Answers by Language