public XMLWriterResource(XMLWriter writer) : base("xmlwriter") { Writer = writer ?? throw new ArgumentNullException(nameof(writer)); }