About Dispose

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Richard Blewett [DevelopMentor]

    #16
    Re: About Dispose

    lol, I could have sworn IDisposable was implemented explicitly by SqlConnection - I wonder what class I was thinking of - my bad

    Regards

    Richard Blewett - DevelopMentor


    But Close and Dispose are on the public face (IDisposable is
    implemented implicitly). I think this is the primary reasons for all
    the confusion that does surround SqlConnection, and all the code you
    see that calls Close and Dispose (and sets the reference to null and
    so on).


    Comment

    Working...