[Mono-list] Convert.ToSingle/Convert.ToDouble with empty string succeeds

Salvatore Scarciglia s.scarciglia at hyperphar.com
Thu Mar 16 10:49:35 EST 2006


On Thu, 16 Mar 2006 15:16:33 +0000
Colin JN Breame <colin at breame.net> wrote:

> I would expect it to throw a System.FormatException like Convert.ToInt32.
> How does this compare to the MS CLR behaviour?  Is this a bug or a feature?

What does it happens if you try to do assign the result of:

System.Convert.ToSingle("")

to a variable ? 

Maybe the problem is in the System.Console.WriteLine method !?

bye



Salvatore ---------------------<|
LAAS --------------------------<|
http://laas.altervista.org ----<|


More information about the Mono-list mailing list