When using a framework method, the description you get when you highlight over it will list the exception(s) possibly raised.
Does it matter if you write the catch handlers in this order? E.g. SqlConnection.Open() can throw:
System.InvalidOperationException System.Data.SqlClient.SqlException
It is listed in that order. Should my catch handlers follow this order? If so, why?
Also, some methods such as SqlDataAdapter.Fill() return an int but no error is reported by Visual Studio if I don't have a variable to store the return value. Why?
Thanks