Using statement question

后端 未结 6 1044
挽巷
挽巷 2021-01-13 04:03

I have two questions.

1) Should you always use a using statement on a connection? So, I would use it on the connection and then another one on a reader within the c

6条回答
  •  情书的邮戳
    2021-01-13 05:02

    Probably this article will be interesting for you: How to Implement IDisposable and Finalizers: 3 Easy Rules

提交回复
热议问题