Пример #1
0
 public void AddDone()
 {
     if (@out != null)
     {
         @out.Dispose();
         @out = null;
     }
 }
Пример #2
0
        public virtual void Flush(Stream stream)
        {
            OutputStreamDataOutput dos = new OutputStreamDataOutput(stream);

            try
            {
                dos.WriteInt(this.counter);

                // write the labelRepository
                this.labelRepository.Flush(dos);
                // Closes the data output stream
                dos.Dispose();
            }
            finally
            {
                dos.Dispose();
            }
        }