[Mono-list] My code runs on the Visual C # 2010, but in monodevelop 2.8 does not work. What is it?
stifu at free.fr
Fri Oct 14 02:18:34 EDT 2011
So this tells us that what fails is the int.Parse() instruction.
The changes I proposed were not meant to make it "work", just to try to
debug the problem, as you didn't give us the Exception message at first.
So, it seems like Console.ReadLine() returns null rather than a string, for
> This is error:
> Unhandled Exception: System.ArgumentNullException: Value cannot be null.
> Parameter name: String
> at System.Number.StringToNumber(String str, NumberStyles options,
> NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
> at System.Number.ParseInt32(String s, NumberStyles style,
> NumberFormatInfo info)
> at Trab0801.Program.Main(String args) in
> What is it?
> This is my code, and in Visual C# it's work =]
> I made the changes mentioned in the previous post and did not work. Can
> anyone help me please?
View this message in context: http://mono.1490590.n4.nabble.com/My-code-runs-on-the-Visual-C-2010-but-in-monodevelop-2-8-does-not-work-What-is-it-tp3897944p3903930.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list