0

I don't get it

can someone tell me what is false about that? class Animal<T> { T x; try int y = int.Parse(x); catch (ArithmeticException e) Console.WriteLine(""); }

5th Mar 2020, 12:34 AM
Michael
2 RĂ©ponses
+ 1
Not too sure about this, but your code (try-catch block) is not wrapped in a method block or anything.
5th Mar 2020, 5:12 AM
Ipang
0
the important part is why can't I try to Parse x into an integer
5th Mar 2020, 12:39 AM
Michael