DataDictionary.Generated.SourceText.unParse C# (CSharp) Method

unParse() public method

This method is used by XMLBooster-generated code internally. Please refrain from using it, as it might produce unexpected results, and might change or even disappear in the future.
public unParse ( TextWriter pw, bool typeId, string headingTag, string endingTag ) : void
pw System.IO.TextWriter
typeId bool
headingTag string
endingTag string
return void
        public override void unParse(TextWriter pw,
                    bool typeId,
                     string  headingTag,
                     string  endingTag)
        {
            #pragma warning disable 0168, 0219
            int i;
            #pragma warning restore 0168, 0219
            if (headingTag == null) {
              headingTag = "<SourceText";
              endingTag = "</SourceText>";
            }

            pw.Write(headingTag);
            if (typeId){
            pw.Write(" xsi:type=\"SourceText\"");
            } // If
            pw.Write('\n');
            if (this.getRegularExpression()){
            pw.Write(" RegularExpression=\"");
            acceptor.unParsePcData(pw, this.getRegularExpression());
            pw.Write('"');
            pw.Write('\n');
            } // If
            if (this.getName() != null){
            pw.Write(" Name=\"");
            acceptor.unParsePcData(pw, this.getName());
            pw.Write('"');
            pw.Write('\n');
            } // If
            if (this.getGuid() != null){
            pw.Write(" Guid=\"");
            acceptor.unParsePcData(pw, this.getGuid());
            pw.Write('"');
            pw.Write('\n');
            } // If
            if (this.getUpdates() != null){
            pw.Write(" Updates=\"");
            acceptor.unParsePcData(pw, this.getUpdates());
            pw.Write('"');
            pw.Write('\n');
            } // If
            if (this.getIsRemoved()){
            pw.Write(" IsRemoved=\"");
            acceptor.unParsePcData(pw, this.getIsRemoved());
            pw.Write('"');
            pw.Write('\n');
            } // If
            pw.Write('>');
            pw.Write('\n');
            unParseBody(pw);
            pw.Write(endingTag);
        }