internal ITexWriterAsTextWriter( ITextWriter textWriter, Encoding encoding ) { if( textWriter.NullReference() ) throw new ArgumentNullException("textWriter").StoreFileLine(); if( encoding.NullReference() ) throw new ArgumentNullException("encoding").StoreFileLine(); this.encoding = encoding; this.textWriter = textWriter; }