Search results for query: *

  • Users: Gavin
  • Order by date
  1. G

    using statement and SqlClient

    Thank you for your reply. From your reply I would infer that IDispose is implemented something like this then (following the suggested pattern for its implementation): Protected Overridable Sub Dispose(ByVal disposing As Boolean) If Not Me.disposedValue Then If disposing Then Me.Close()...
  2. G

    using statement and SqlClient

    I am unsure about whether to use Using around sqlclient objects, for example the sqlconnection or sqlcommand objects. Both implement IDispose and make use of unmanaged resources but are themselves managed. So should I use Using or just allow them to go out of scope and rely on the GC?
Back
Top