[Mono-list] conversions

Richard Polton Richard.Polton@morganstanley.com
Fri, 24 Sep 2004 11:34:32 +0100


Hi,

I was browsing the source code for Conversions.cs (or similar) in the 
VisualBasic (I think) package in 1.0.1 and came across a couple of 
oddities. The one which struck me in particular was the conversion of a 
single character into a numeric type. It was performed by subtracting 
the absolute character '0' from the function parameter. This will only 
work if the input character set is known to be ASCII or known to be 
ordered in the same way? So, my question is, is it a requirement of all 
.NET (and Mono) applications that the character set used is ASCII or 
similar? I know the spec refers to the program as being encoded in 
Unicode but I couldn't find anything regarding the recognisable input chars.

Richard