예제 #1
0
파일: pdb2xml.cs 프로젝트: pusp/o2platform
        private static void PdbToXML(string Input, string OutputXml)
        {
            // Get a Text Writer to spew the PDB to.
            var doc = new XmlDocument();
            XmlWriter xw = doc.CreateNavigator().AppendChild();

            // Do the pdb for the exe into an xml stream. 
            var converter = new Pdb2XmlConverter(xw, Input);
            converter.ReadPdbAndWriteToXml();
            xw.Close();

            // Save xml to disk
            doc.Save(OutputXml);
        }
예제 #2
0
        private static void PdbToXML(string Input, string OutputXml)
        {
            // Get a Text Writer to spew the PDB to.
            var       doc = new XmlDocument();
            XmlWriter xw  = doc.CreateNavigator().AppendChild();

            // Do the pdb for the exe into an xml stream.
            var converter = new Pdb2XmlConverter(xw, Input);

            converter.ReadPdbAndWriteToXml();
            xw.Close();

            // Save xml to disk
            doc.Save(OutputXml);
        }