DataDictionary.Generated.Message.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

            pw.Write("<Message");
            if (typeId){
            pw.Write(" xsi:type=\"Message\"");
            } // If
            pw.Write('\n');
            pw.Write(" description=\"");
            acceptor.unParsePcData(pw, this.getDescription());
            pw.Write('"');
            pw.Write('\n');
            pw.Write(" media=\"");
            acceptor.unParsePcData(pw,
              acceptor.Enum_Message_media_ToString(this.getMedia()));
            pw.Write('"');
            pw.Write('\n');
            if (this.getBl() != null){
            pw.Write(" bl=\"");
            acceptor.unParsePcData(pw, this.getBl());
            pw.Write('"');
            pw.Write('\n');
            } // If
            pw.Write('>');
            pw.Write('\n');
            unParseBody(pw);
            pw.Write("</Message>");
            pw.Write('\n');
        }