String Array To String Based On Any Delimiter In C#

Sample code
  1. using System;      
  2. using System.Collections.Generic;      
  3. using System.Linq;      
  4. using System.Text;      
  5. using System.Threading.Tasks;      
  6. namespace ConsoleApplication1   
  7. {      
  8.     class Program   
  9.   {      
  10.         public static void Main(string[] args)   
  11.          {      
  12.             string[] arr = { "one""two""three" };    
  13.         string  delimeter ="-";    
  14.         demo obj = new demo();    
  15.         obj.joinstring(delimeter, arr);      
  16.           }      
  17.     }      
  18.     class demo   
  19.          {      
  20.             public void joinstring(string delimeter, string[] arr)    
  21.                 {    
  22.                            string joinitem = string.Join(delimeter, arr);    
  23.                            Console.WriteLine(joinitem);    
  24.                }           
  25.          }      
  26.   }      
  27.