示例#1
0
        //</snippet2>

        // Dispose the record sequence and delete the log file.
        public void Cleanup()
        {
            // Dispose the sequence.
            sequence.Dispose();

            // Delete the log file.
            if (delete)
            {
                try
                {
                    File.Delete(this.logName);
                }
                catch (Exception e)
                {
                    Console.WriteLine("Exception {0} {1}", e.GetType(), e.Message);
                }
            }
        }
示例#2
0
 public void Dispose(){
   _sequence.Dispose();
 }