예제 #1
0
 /// <summary>
 /// Attempts to close the file and release resources held by the adapter.
 /// </summary>
 protected override void AttemptDisconnection()
 {
     if ((object)m_dataReader != null)
     {
         m_dataReader.Close();
         m_dataReader.Dispose();
         m_dataReader = null;
     }
 }
예제 #2
0
 /// <summary>
 /// Attempts to close the file and release resources held by the adapter.
 /// </summary>
 protected override void AttemptDisconnection()
 {
     if (m_data != null)
     {
         m_data.Close();
         m_data.Dispose();
     }
     m_data = null;
 }