Exemple #1
0
 public void Dispose()
 {
     if (_file != null)
     {
         _file.Close();
         _file = null;
     }
 }
Exemple #2
0
 override public void Dispose()
 {
     base.Dispose();
     if (_dataReader != null)
     {
         _dataReader.Dispose();
     }
     _dataReader = null;
     if (_file != null)
     {
         _file.Close();
     }
     _file = null;
 }