Re: [DOTNET] Comparing char to ascii char

2002-06-14 Thread Marsh, Drew
I wrote: > Also, you can also convert > characters and strings to ASCII at runtime using > System.Encoding.ASCII.GetBytes/GetString(). I neglected to mention that a sinlge Char (as opposed to an array of Chars) can easily be converted to a byte at runtime just by calling it's IConvertible::ToByt

Re: [DOTNET] Comparing char to ascii char

2002-06-14 Thread Marsh, Drew
Christopher Slowik [mailto:[EMAIL PROTECTED]] wrote: > I'm using c# and need to compare each character in a string > to see if its an ascii dec 022. How do you declare an ascii > char in c#. Does c# have a chr function. I don't seem to be > able to find anything. TIA The System.Char datatype

[DOTNET] Comparing char to ascii char

2002-06-14 Thread Christopher Slowik
Hi, I'm using c# and need to compare each character in a string to see if its an ascii dec 022. How do you declare an ascii char in c#. Does c# have a chr function. I don't seem to be able to find anything. TIA -Chris