I've been browsing the .NET Framework source code this morning as I just wanted to check the behaviour of Dipose()
on database connections.
However, viewing the .NET Framework source for SqlConnection (+ I've downloaded it as well), there is no method Dispose()
defined in SqlConnection
.
However, using dotPeek, I can see an implementation of Dispose()
on SqlConnection
What am I missing?
Dispose()
in that file? It just contains aDisposeMe()
helper method, but not theDispose()
method. (It does containSqlDebugContext.Dispose()
, but notSqlConnection.Dispose()
.)