public PemWriter( TextWriter writer) { if (writer == null) throw new ArgumentNullException("writer"); this.writer = writer; }