Microsoft.Protocols.TestSuites.Common.XmlWriterInjector.XmlWriterInjector C# (CSharp) Method

XmlWriterInjector() public method

Initializes a new instance of the XmlWriterInjector class.
public XmlWriterInjector ( XmlWriter implementation ) : System
implementation System.Xml.XmlWriter A parameter instance represents an XmlWriter type implementation.
return System
        public XmlWriterInjector(XmlWriter implementation)
        {
            this.originalXmlWriter = implementation;
            this.stringWriterInstance = new StringWriter();
            this.injectorXmlTextWriter = new XmlTextWriter(this.stringWriterInstance);
            this.injectorXmlTextWriter.Formatting = Formatting.Indented;
        }