When using the framework method, the description that you get when you select above it will list the exception (s), possibly raised.
Does it matter if you write catch handlers in this order? For example. SqlConnection.Open () can throw:
System.InvalidOperationException System.Data.SqlClient.SqlException
It is listed in that order. Should my catchers keep this order? If so, why?
In addition, some methods such as SqlDataAdapter.Fill () return an int, but no error is reported to Visual Studio unless I have a variable to store the return value. Why?
thanks
source
share