Is there a list of common object that implement IDisposable for the using statement?

前端 未结 9 2389
挽巷
挽巷 2020-12-17 15:10

I was wondering if there was some sort of cheat sheet for which objects go well with the using statement... SQLConnection, MemoryStream, etc.

9条回答
  •  旧时难觅i
    2020-12-17 15:38

    With ReSharper you can show all derived types. Maybe you can do it with the object browser without ReSharper, too. Go to the interface definition and look for "show inheritors".

提交回复
热议问题