C# using statement catch error

后端 未结 16 1593
轻奢々
轻奢々 2021-01-30 14:06

I am just looking at the using statement, I have always known what it does but until now not tried using it, I have come up with the below code:

 using (SqlComma         


        
16条回答
  •  梦谈多话
    2021-01-30 14:41

    using isn't about catching exceptions. It's about properly disposing of resources that are outside the view of the garbage collector.

提交回复
热议问题