Convert.tochar

  • Thread starter Thread starter Shay_w
  • Start date Start date
S

Shay_w

Guest
Hi

What the right syntax for convert.tochar ?

if i write

foreach (char letter in str.ToCharArray())
{
switch (letter)
{
case Convert.ToChar("a"):
sum += 1;



the code line case Convert.ToChar("a"): get an error

Thanks

Continue reading...
 
Back
Top