Types that own disposable fields should be disposable. how to solve this warning?

前端 未结 2 1288
醉酒成梦
醉酒成梦 2020-12-16 04:54

I tried using Run Code Analysis option in VisualStudio 2012, as a result of it I got a warning as

CA1001  Types that own disp         


        
2条回答
  •  抹茶落季
    2020-12-16 05:09

    If that is you complete class you should move all the SQL variables inside the constructor. Or perhaps change the constructor to a static function that return the masterTableList

提交回复
热议问题