Beispiel #1
0
        private bool disposedValue = false; // To detect redundant calls

        protected override void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    if (writer != null)
                    {
                        writer.Dispose();
                    }
                }

                writer = null;

                disposedValue = true;
                base.Dispose(disposing);
            }
        }
Beispiel #2
0
 /// <summary>
 /// Create a new V3000 writer, output to the provided JDK writer.
 /// </summary>
 /// <param name="writer">output location</param>
 public MDLV3000Writer(TextWriter writer)
     : this()
 {
     this.writer = new V30LineWriter(writer);
 }