Converting from Char to ASCII

  • Thread starter Thread starter glenn
  • Start date Start date
G

glenn

I have a character lets say A and I want to see what the ASCII code is for
that ie: 65.

now to take 65 and make a C i would use: string str = (char)65;

What is the process to go the other way in C#?

Thanks,

glenn
 
thanks, it appears my problem was actually that I was trying to use the
substr property of the string to get at each character. I converted it to
using, mystr instead and now it works.

Thanks,

glenn
 
Back
Top