DataDictionary.Generated.Shortcut.unParse C# (CSharp) Méthode

unParse() public méthode

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
Résultat 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 = "<Shortcut";
              endingTag = "</Shortcut>";
            }

            pw.Write(headingTag);
            if (typeId){
            pw.Write(" xsi:type=\"Shortcut\"");
            } // If
            pw.Write('\n');
            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);
        }