DesignTimeXamlWriter(NamespaceIndentingXmlWriter underlyingWriter, WorkflowDesignerXamlSchemaContext context, bool shouldWriteDebugSymbol)
     : base(underlyingWriter, context,
         // Setting AssumeValidInput to true allows to save a document even if it has duplicate members
         new XamlXmlWriterSettings { AssumeValidInput = true })
 {
     underlyingWriter.Parent = this;
     this.namespacesToIgnore = new HashSet<string>();
     this.rootLevelNamespaces = new HashSet<string>();
     this.schemaContext = context;
     this.currentDepth = 0;
     this.shouldWriteDebugSymbol = shouldWriteDebugSymbol;
 }
 DesignTimeXamlWriter(NamespaceIndentingXmlWriter underlyingWriter, WorkflowDesignerXamlSchemaContext context, bool shouldWriteDebugSymbol)
     : base(underlyingWriter, context,
            // Setting AssumeValidInput to true allows to save a document even if it has duplicate members
            new XamlXmlWriterSettings {
     AssumeValidInput = true
 })
 {
     underlyingWriter.Parent     = this;
     this.namespacesToIgnore     = new HashSet <string>();
     this.rootLevelNamespaces    = new HashSet <string>();
     this.schemaContext          = context;
     this.currentDepth           = 0;
     this.shouldWriteDebugSymbol = shouldWriteDebugSymbol;
 }