How to get the ascii value of a char and string in c#
plss help me it's urgent
thanks,
pramod
How to get the ascii value of a char and string in c#
plss help me it's urgent
thanks,
pramod
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Niradhip ChakrabortyPosted Mar 23, 2009, 1:06 PM
// Convert the string into a byte[].
byte[] asciiBytes = Encoding.ASCII.GetBytes(value);
Vimal KandasamyPosted Mar 23, 2009, 8:09 AM
i may not be exact
but
if you assign a char value into an int variable
like
int ascii='a';
then ascii will contain ascii value[97] of 'a'.
it may not be the right way.but it wil help you to find out.