String[] MyArray = { "Welcome", "to", "C#", "Corner" };
String Myseperator = ", ";
String temp = String.Join(Myseperator, MyArray);
The folloing code snippet describes how to convert an array to a comma seperated string.
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyeBook · C#Modern CSharp Mastery - Advanced Guide for Experienced DevelopersDownload nowWrite a blog post and earn +250 SHARP when it is approved.
Write a blog
Join the conversation! Your thoughts help the community grow.