Convert char to string
How can explicitly convert type 'char' to 'string' or'char' to 'int'
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
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
Posted Jun 15, 2011, 8:24 PM EDT
string s = Convert.ToString('C');
From Char to Int,
int i = Convert.ToInt32('C'); //the output will be 67 here.
Gurjeet SinghRank #747 · 3.1K reputationPosted Jun 15, 2011, 9:01 PM EDT
VulpesRank #55 · 29.2K reputationPosted Jun 16, 2011, 12:23 AM EDT
Suthish NairRank #92 · 22.8K reputationPosted Jun 17, 2011, 2:58 AM EDT