コード例 #1
0
        public SyntaxPrinter(SyntaxWriter writer)
        {
            if (writer == null)
                throw new ArgumentNullException("writer");

            _writer = writer;
        }
コード例 #2
0
        public void Dispose()
        {
            if (!_disposed)
            {
                if (_writer != null)
                {
                    _writer.Flush();
                    _writer = null;
                }

                _disposed = true;
            }
        }