- InvalidCastException
- ArgumentNullException
Unfortunately, this list is not complete. When you try to convert the string "oops" to int32, this method throws a System.FormatException with the message "Input string was not in a correct format."
In this regard the online documentation for .NET 2.0 is incorrect. The behavior might be the same for .NET 3.0. I didn't verify the latter.
The behavior is the same for .NET 3.5.0.0.!
ReplyDelete