示例#1
0
        static void Main(string[] args)
        {
            var xmlConverter = new XMLFormat();
            var adapter      = new XMLtoJSON(xmlConverter);

            adapter.ConvertXmlToJson();
            Console.ReadKey();
        }
示例#2
0
 //The data of the XML is fed to private readonly variable from here.
 public XMLtoJSON(XMLFormat xmlFormat)
 {
     _xmlFormat = xmlFormat;
 }