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