How can explicitly convert type 'String[]' to 'string'
Convert type ‘String[]’ to ‘string’
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
How can explicitly convert type 'String[]' to 'string'
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Jun 20, 2011, 2:52 AM EDT
Sandeep ShekhawatRank #2,439 · 577 reputationPosted Jun 20, 2011, 2:56 AM EDT
string arr1 = (string)name[0];
Response.Write(arr1);
OR
Pradeep ChandrakerRank #941 · 2.2K reputationPosted Jun 20, 2011, 5:16 PM EDT
Or you can go for the option suggest by @Vulpes where you can add any separator between array element.