the following writing will be submitted to the exception: Int num=the Convert. ToInt32 (" 0 "+" 1234 ");
The following writing will not quote exception:
Int num=the Convert. ToInt32 (" 0 "+" 1234 ");
The following writing will not quote exception:
Int num=the Convert. ToInt32 (" 0 "+" ");
The following writing will not quote exception:
Int num=the Convert. ToInt32 (" 0 "+" 1234 ");
Did you notice the problem???????
CodePudding user response:
Int aaa=the Convert. ToInt32 (" 0 "+" 1234 ");//this also OK
ToInt32 (string value); String will be performing the Trim ();
CodePudding user response: