我一直在研究在C#中使用using语句,我想知道以下代码是否等效:
using (SqlConnection connection1 = new SqlConnection(), connection2 = new SqlConnection())
{
}
对于这段代码:
using (SqlConnection connection1 = new SqlConnection())
using (SqlConnection connection2 = new SqlConnection())
{
}