J
John
I have a simple question which, surprisingly a google search nor MSDN
can help me with. What is the best stream to use to parse a string,
character by character. All the streams return Int32, but I cannot find
a way to convert the Int32 to a character value. For instance,
StringReader.Read("1") returns 49, the Unicode character code. How do I
convert this unicode code to its value '1'?
Also, off the main question, but here are a couple more:
1) Why doesn't StringReader take an Encoding?
2) If StringReader does not take an Encoding, how does it actually work?
3) If String has a Trim function, why isn't there an
Encoding.xxx.IsSpace(Int32 ch)?
thanks very much in advance
can help me with. What is the best stream to use to parse a string,
character by character. All the streams return Int32, but I cannot find
a way to convert the Int32 to a character value. For instance,
StringReader.Read("1") returns 49, the Unicode character code. How do I
convert this unicode code to its value '1'?
Also, off the main question, but here are a couple more:
1) Why doesn't StringReader take an Encoding?
2) If StringReader does not take an Encoding, how does it actually work?
3) If String has a Trim function, why isn't there an
Encoding.xxx.IsSpace(Int32 ch)?
thanks very much in advance