c# sql what to dispose

后端 未结 6 1227
南旧
南旧 2021-01-06 00:10

I have the code below to query records from a stored procedure but am concerned I may not be disposing what I need to or am disposing when the object would be cleared by the

6条回答
  •  情话喂你
    2021-01-06 00:55

    Personally if something has a dispose method then it is worth using it anyway as they will prevent protential memory leaks.

提交回复
热议问题